Commit Graph

132 Commits (185fdc194782e24775db22c26a79687b1598be01)

Author SHA1 Message Date
Alexander Larsson 098e3e426d build: Look for files in the same dir as the manifest, not in the CWD
This makes more sense, the CWD is not necessary a useful place.
2016-05-04 08:47:38 +02:00
Tristan Van Berkom 51e387159b build-export: Add --arch option
This patch adds the --arch option to the build-export builtin command.

Previously build-export derives this from the metadata and then falls back
to xdg_app_get_arch(), except that this does not work when the metadata does
not specify an arch (such as with extensions like .Debug or .Locale).

https://bugs.freedesktop.org/show_bug.cgi?id=95226
2016-05-03 09:05:56 +02:00
Tristan Van Berkom aa69c1afef xdg-app-builder: Add --arch command line option
This is only useful for building for architectures which are
compatible with the build host, e.g. building i686 binaries on
an x86_64 build host.
2016-05-02 08:46:52 +02:00
Tristan Van Berkom bc7bfeef6f BuilderSourceFile: Delete destination file
Sometimes you want to replace an existing file, like a config.sub,
and sometimes that existing config.sub does not have the writable
bits set. Just delete the file if we intend to replace it anyway.
2016-04-27 14:15:05 +02:00
Alexander Larsson 9171c94662 builder: Fix unused return value warnings
This just adds a (void) cast to avoid the warnings.
2016-04-21 09:49:24 +02:00
Alexander Larsson af03d2f5b4 Remove unused local variables reported by clang 2016-04-21 09:48:56 +02:00
Joaquim Rocha f112d117da builder: Do not repeat the separate locales path
These changes replace all occurrences of 'share/runtime/locale' with a
define so it will avoid possible mistakes when having to be replaced
one day.
2016-04-20 12:32:02 +02:00
Joaquim Rocha 39279c8b8b builder: Skip separate locales exportation if directory doesn't exist
This will avoid errors when separate_locales is set to true but the
locales directory does not exist. This is the case of many apps that do
not support separate locales but haven't specifically set
separate_locales to false in the configuration.
2016-04-20 12:32:02 +02:00
Alexander Larsson 265ba5e528 Merge pull request #128 from matthiasclasen/run-fixes
Some fixes for xdg-app-builder --run
2016-04-15 11:50:34 +02:00
Tristan Van Berkom 401c7b2dea BuilderModule: Use builder_options_get_config_opts()
The configure arguments are now a combination of the
default config-opts plus the accumulative sum of the config-opts
specified in the build-options that are active for a given build
context.

https://bugs.freedesktop.org/show_bug.cgi?id=94940
2016-04-15 10:25:55 +02:00
Tristan Van Berkom 17ec9ef3b0 BuilderOptions: Added 'config-opts' option.
Allows conditional configure arguments.

https://bugs.freedesktop.org/show_bug.cgi?id=94940
2016-04-15 10:25:55 +02:00
Matthias Clasen 9426438c0b Fix --run
I have a manifest which has --command=terminix in the finish-args,
and xdg-app build doesn't like that option, so filter it out.
2016-04-14 19:11:48 -04:00
Alexander Larsson 416ad53878 Fix typo for no-debuginfo properly 2016-04-14 19:28:08 +02:00
Matthias Clasen 838d109e58 builder: Add an option to erase app dir
Having to run rm -rf yourself before every new build attempt
gets old. Lets add an option to have xdg-app-builder do it
for us.
2016-04-13 23:06:59 -04:00
Alexander Larsson d52cb3b378 builder: better error messages if failing to find desktop file 2016-04-11 11:20:45 +02:00
Alexander Larsson 545a699698 builder: Only create one locale extension
Given that each app can have 100 locates, ostree just doesn't scale
to having a branch per app/locale combo. For 100 apps and 100 locales
that would be 10000 branches.

Also, things like xdg-app remote-list doesn't properly handle that
either.

We need to handle this by e.g. supporting subsetting the pull of
the locale extension.
2016-04-07 13:02:36 +02:00
Alexander Larsson 7e6b18eddc builder: Actually respect the defined branch 2016-03-23 16:42:40 +01:00
Alexander Larsson d32b13a695 builder: Checksum metadata-platform contents for cache too 2016-03-23 14:54:47 +01:00
Alexander Larsson d6f9e03a61 builder: Use the right field for the platform cache checksum
It was looking at metadata, instead of metadata_platform
2016-03-23 14:49:59 +01:00
Alexander Larsson b3f9da3648 builder: Build single every-locale extension
This is useful for testing, as well as makes building derived runtimes
easier.
2016-03-21 16:37:51 +01:00
Alexander Larsson 08959b4373 xdg-app-builder: Don't export if --build-only specified 2016-03-17 20:55:55 +01:00
Alexander Larsson 728e7a89e1 xdg-app-buildeR: Remove unnecessary spew 2016-03-14 11:57:06 +01:00
Alexander Larsson 6c5e1a8a92 Fix some compiler warning (unused vars) 2016-02-25 16:09:49 +01:00
Alexander Larsson 467e8bf4db builder: Add sources referenced from debuginfo into Debug runtime 2016-02-23 14:13:36 +01:00
Alexander Larsson 90aaed7f7b builder: Build runtimes in /run/build-runtime
This way we the runtime build dir doesn't conflict with the app dir.
Which is good if we want debuginfo with sources for both.
2016-02-23 14:12:20 +01:00
Alexander Larsson 22d997e712 builder: Add builder_get_debuginfo_file_references 2016-02-23 12:44:01 +01:00
Alexander Larsson f98f565df0 Add support for separated locales when creating platforms 2016-02-18 21:49:13 +01:00
Alexander Larsson f1d401e6cd Migrate locales after importing parent runtime 2016-02-18 21:48:33 +01:00
Alexander Larsson b44bbc13c3 Move migrate_locales to builder-utils.c 2016-02-18 21:47:29 +01:00
Alexander Larsson d5d47aa458 builder: Support separating out locale data 2016-02-18 19:22:34 +01:00
Alexander Larsson bb4d67b086 builder: Support tags 2016-02-17 14:54:16 +01:00
Alexander Larsson 71259fa711 builder: Support local archives with path property 2016-02-17 14:50:01 +01:00
Alexander Larsson 6c5feb4e05 builder: Add support for --run to start a command in the build dir 2016-02-17 10:26:35 +01:00
Alexander Larsson c07b1807d1 builder: Move CFLAGS/CXXFLAGS handling into BuilderOptions 2016-02-17 10:26:35 +01:00
Alexander Larsson e233705379 builder: Add build_context_get_build_dir() 2016-02-17 10:26:32 +01:00
Alexander Larsson 393163200d builder: Always create unversioned symlinks while building modules
This way if things go wrong you can always find the latest build
2016-02-17 08:43:29 +01:00
Alexander Larsson faecde5da5 builder: Report errors if eu_strip fails
This was ignoring errors and causing "set-on-top-of-existing-GError"
messages.
2016-02-16 14:45:23 +01:00
Alexander Larsson ea176cd63a builder: Put all builds in a .xdg-app-builder/build subdir
I.e. instead of .xdg-app-builder/build-foo it will be
.xdg-app-builder/build/foo. This makes it easier to separate these
out, and it allows you to symlink this directory to /run/build to pick
up all sources when you use --keep-build-dirs.
2016-02-10 10:15:25 +01:00
Alexander Larsson 9c6d6242a9 builder: Avoid reusing set GError
my_error was used twice, without clearing inbetween, which can
cause issues.
2016-02-08 16:21:28 +01:00
Alexander Larsson 32e9502675 Fix some g_propagate_error typos 2016-02-08 16:16:38 +01:00
Alexander Larsson 1cc94f4f04 builder: Use predictable names for build dirs
Instead of random hex, we use a pure counter
2016-02-08 11:30:48 +01:00
Alexander Larsson 43ac6421f9 builder: Store exact sdk commit id in the build cache and manifest
This means we rebuild everything if the sdk changes, and you can also
see what version an app was built against.
2016-02-03 10:57:50 +01:00
Alexander Larsson 9f2769e0ce builder: Use non-parallel-make option instead of looking at .NONPARALLEL 2016-02-01 21:40:22 +01:00
Alexander Larsson 913eccd30f builder: Add shell source
This lets you run shell commands to modify the source
2016-02-01 21:26:20 +01:00
Alexander Larsson 3a70dcf430 builder: Style fixes 2016-01-28 21:52:45 +01:00
Michael Spencer ba5b5bc6b8 builder: Skip checking out disabled submodules 2016-01-28 12:46:40 -06:00
Alexander Larsson 225c359128 Fix include order to build with older libsoup versions 2016-01-28 14:35:46 +01:00
Alexander Larsson 20d16625a8 builder: support using appstream-compose to create appstream files 2016-01-22 15:33:03 +01:00
Alexander Larsson e8adcc0eb5 builder: Add spew when commiting to cache 2016-01-22 14:08:43 +01:00
Alexander Larsson 5c89d5a4e9 builder: Add some spew before build-init 2016-01-22 12:30:00 +01:00