1 Author: Joone Hur <joone.hur@intel.com>
3 Make is used to build chromium instead of ninja when creating rpm packages using gbs
4 because depot_tools needs to be copied manually to chroot environment. However,
5 gyp_chromium still runs GN even if we do not use ninja, which requires Gtk+2, but
6 Tizen IVI does not provide Gtk+2 packages.
8 This patch allows only to run GN when ninja is used.
10 For your information, GN is a meta-build system that generates ninja files.
12 --- src/build/gyp_chromium
13 +++ src/build/gyp_chromium
14 @@ -39,7 +39,8 @@ sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'liblouis'))
15 sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit',
16 'Source', 'build', 'scripts'))
18 -import find_depot_tools
19 +if os.environ.get('GYP_GENERATORS') != 'make':
20 + import find_depot_tools
22 # On Windows, Psyco shortens warm runs of build/gyp_chromium by about
23 # 20 seconds on a z600 machine with 12 GB of RAM, from 90 down to 70
24 @@ -475,8 +476,9 @@ if __name__ == '__main__':
25 args.append('--check')
27 supplemental_includes = GetSupplementalFiles()
28 - if not RunGN(supplemental_includes):
30 + if os.environ.get('GYP_GENERATORS') != 'make':
31 + if not RunGN(supplemental_includes):
34 ['-I' + i for i in additional_include_files(supplemental_includes, args)])