Skip to content

Commit

Permalink
pacakge.build use build_simple
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 19, 2024
1 parent 11a08f0 commit e033257
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/ccode/job.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void jobs_add(jobs* j, void (*callback)(void*), void* args, ...) {
job new_job;
new_job.callback = callback;
new_job.args = malloc(sizeof(args));
memcpy(new_job.args, args, sizeof(args));
new_job.args = args;
new_job.id = j->total;
j->jobs[j->total++] = new_job;
j->current++;
Expand Down
13 changes: 1 addition & 12 deletions src/data/package.vala
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,8 @@ public class package {
var build = new builder ();
create_dir (get_build_dir () + "/" + name);
pkgfile.set_target (get_build_dir () + "/" + name);
build.ymp_build.set_ympbuild_srcpath (get_build_dir () + "/" + name);
build.ymp_build.set_ympbuild_buildpath (get_build_dir () + "/" + name);
if (!get_bool ("no-clear")) {
remove_all (build.ymp_build.ympbuild_buildpath);
}
pkgfile.set_target (get_build_dir () + "/" + name);
pkgfile.extract_all ();
build.set_build_target (get_build_dir () + "/" + name);
build.ymp_build.set_ympbuild_buildpath (get_build_dir () + "/" + name);
build.build_target.create_metadata_info ();
build.fetch_package_sources ();
build.extract_package_sources ();
build.build_package ();
build.build_single(get_build_dir () + "/" + name);
error (1);
quarantine_import_from_path (build.ymp_build.ympbuild_buildpath + "/output");
cd (curdir);
Expand Down

0 comments on commit e033257

Please sign in to comment.