summaryrefslogtreecommitdiffstats
path: root/build/util/lastchange.scons
diff options
context:
space:
mode:
Diffstat (limited to 'build/util/lastchange.scons')
-rw-r--r--build/util/lastchange.scons278
1 files changed, 278 insertions, 0 deletions
diff --git a/build/util/lastchange.scons b/build/util/lastchange.scons
new file mode 100644
index 0000000..9c26cce
--- /dev/null
+++ b/build/util/lastchange.scons
@@ -0,0 +1,278 @@
+# This file is generated; do not edit.
+
+import os
+
+Import("env")
+
+env = env.Clone(COMPONENT_NAME='build_util',
+ TARGET_NAME='lastchange')
+
+configurations = {
+ 'Release' : {
+ 'Append' : dict(
+ CCFLAGS = [
+ '-pthread',
+ '-fno-exceptions',
+ '-D_FILE_OFFSET_BITS=64',
+ '-fvisibility=hidden',
+ '-fno-strict-aliasing',
+ '-O2',
+ '-fno-ident',
+ '-fdata-sections',
+ '-ffunction-sections',
+ '-fno-asynchronous-unwind-tables'
+ ],
+ CPPDEFINES = [
+ 'CHROMIUM_BUILD',
+ 'ENABLE_GPU=1',
+ 'NDEBUG',
+ 'NVALGRIND'
+ ],
+ CXXFLAGS = [
+ '-fno-rtti',
+ '-fno-threadsafe-statics',
+ '-fvisibility-inlines-hidden'
+ ],
+ LINKFLAGS = [
+ '-pthread',
+ '-Wl,--gc-sections'
+ ],
+ ),
+ 'FilterOut' : dict(
+ ),
+ 'Replace' : dict(
+ FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
+ FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
+ FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
+ IMPLICIT_COMMAND_DEPENDENCIES = '0',
+ LDMODULECOM = [['$FLOCK_LDMODULE',
+ '-o',
+ '$TARGET',
+ '$_LIBDIRFLAGS',
+ '$LDMODULEFLAGS',
+ '$SOURCES',
+ '-Wl,--start-group',
+ '$_LIBFLAGS',
+ '-Wl,--end-group']],
+ LIBPATH = ['$LIB_DIR'],
+ LINKCOM = [['$FLOCK_LINK',
+ '-o',
+ '$TARGET',
+ '$_LIBDIRFLAGS',
+ '$LINKFLAGS',
+ '$SOURCES',
+ '-Wl,--start-group',
+ '$_LIBFLAGS',
+ '-Wl,--end-group']],
+ SHLINKCOM = [['$FLOCK_SHLINK',
+ '-o',
+ '$TARGET',
+ '$_LIBDIRFLAGS',
+ '$SHLINKFLAGS',
+ '$SOURCES',
+ '-Wl,--start-group',
+ '$_LIBFLAGS',
+ '-Wl,--end-group']],
+ ),
+ 'ImportExternal' : [
+ 'AS',
+ 'CC',
+ 'CXX',
+ 'LINK',
+ ],
+ 'PropagateExternal' : [
+ 'AS',
+ 'CC',
+ 'CCACHE_DIR',
+ 'CXX',
+ 'DISTCC_DIR',
+ 'DISTCC_HOSTS',
+ 'HOME',
+ 'INCLUDE_SERVER_ARGS',
+ 'INCLUDE_SERVER_PORT',
+ 'LINK',
+ 'CHROME_BUILD_TYPE',
+ 'CHROMIUM_BUILD',
+ 'OFFICIAL_BUILD',
+ ],
+ },
+ 'Debug' : {
+ 'Append' : dict(
+ CCFLAGS = [
+ '-pthread',
+ '-fno-exceptions',
+ '-D_FILE_OFFSET_BITS=64',
+ '-fvisibility=hidden',
+ '-fno-strict-aliasing',
+ '-O0',
+ '-g'
+ ],
+ CPPDEFINES = [
+ 'CHROMIUM_BUILD',
+ 'ENABLE_GPU=1',
+ '_DEBUG'
+ ],
+ CXXFLAGS = [
+ '-fno-rtti',
+ '-fno-threadsafe-statics',
+ '-fvisibility-inlines-hidden'
+ ],
+ LINKFLAGS = [
+ '-pthread',
+ '-rdynamic'
+ ],
+ ),
+ 'FilterOut' : dict(
+ ),
+ 'Replace' : dict(
+ FLOCK_LDMODULE = ['flock', '$TOP_BUILDDIR/linker.lock', '$LDMODULE'],
+ FLOCK_LINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$LINK'],
+ FLOCK_SHLINK = ['flock', '$TOP_BUILDDIR/linker.lock', '$SHLINK'],
+ IMPLICIT_COMMAND_DEPENDENCIES = '0',
+ LDMODULECOM = [['$FLOCK_LDMODULE',
+ '-o',
+ '$TARGET',
+ '$_LIBDIRFLAGS',
+ '$LDMODULEFLAGS',
+ '$SOURCES',
+ '-Wl,--start-group',
+ '$_LIBFLAGS',
+ '-Wl,--end-group']],
+ LIBPATH = ['$LIB_DIR'],
+ LINKCOM = [['$FLOCK_LINK',
+ '-o',
+ '$TARGET',
+ '$_LIBDIRFLAGS',
+ '$LINKFLAGS',
+ '$SOURCES',
+ '-Wl,--start-group',
+ '$_LIBFLAGS',
+ '-Wl,--end-group']],
+ SHLINKCOM = [['$FLOCK_SHLINK',
+ '-o',
+ '$TARGET',
+ '$_LIBDIRFLAGS',
+ '$SHLINKFLAGS',
+ '$SOURCES',
+ '-Wl,--start-group',
+ '$_LIBFLAGS',
+ '-Wl,--end-group']],
+ ),
+ 'ImportExternal' : [
+ 'AS',
+ 'CC',
+ 'CXX',
+ 'LINK',
+ ],
+ 'PropagateExternal' : [
+ 'AS',
+ 'CC',
+ 'CCACHE_DIR',
+ 'CXX',
+ 'DISTCC_DIR',
+ 'DISTCC_HOSTS',
+ 'HOME',
+ 'INCLUDE_SERVER_ARGS',
+ 'INCLUDE_SERVER_PORT',
+ 'LINK',
+ 'CHROME_BUILD_TYPE',
+ 'CHROMIUM_BUILD',
+ 'OFFICIAL_BUILD',
+ ],
+ },
+}
+
+config = configurations[env['CONFIG_NAME']]
+env.Append(**config['Append'])
+env.FilterOut(**config['FilterOut'])
+env.Replace(**config['Replace'])
+
+# Scons forces -fPIC for SHCCFLAGS on some platforms.
+# Disable that so we can control it from cflags in gyp.
+# Note that Scons itself is inconsistent with its -fPIC
+# setting. SHCCFLAGS forces -fPIC, and SHCFLAGS does not.
+# This will make SHCCFLAGS consistent with SHCFLAGS.
+env['SHCCFLAGS'] = ['$CCFLAGS']
+
+for _var in config['ImportExternal']:
+ if _var in ARGUMENTS:
+ env[_var] = ARGUMENTS[_var]
+ elif _var in os.environ:
+ env[_var] = os.environ[_var]
+for _var in config['PropagateExternal']:
+ if _var in ARGUMENTS:
+ env[_var] = ARGUMENTS[_var]
+ elif _var in os.environ:
+ env['ENV'][_var] = os.environ[_var]
+
+env['ENV']['LD_LIBRARY_PATH'] = env.subst('$LIB_DIR')
+
+if ARGUMENTS.get('COVERAGE') not in (None, '0'):
+ env.AppendUnique(
+ CCFLAGS = [
+ '-fprofile-arcs',
+ '-ftest-coverage'
+ ],
+ LINKFLAGS = [
+ '-fprofile-arcs'
+ ],
+ )
+
+if ARGUMENTS.get('PROFILE') not in (None, '0'):
+ env.AppendUnique(
+ CCFLAGS = [
+ '-pg',
+ '-g'
+ ],
+ LINKFLAGS = [
+ '-pg'
+ ],
+ )
+
+if ARGUMENTS.get('SYMBOLS') not in (None, '0'):
+ env.AppendUnique(
+ CCFLAGS = [
+ '-g'
+ ],
+ )
+
+input_files = []
+
+target_files = []
+prerequisites = []
+
+if GetOption('verbose'):
+ _action = Action([['cd',
+ '$SRC_DIR/build/util',
+ '&&',
+ 'python',
+ './lastchange.py',
+ '-o',
+ '${SHARED_INTERMEDIATE_DIR}/build/LASTCHANGE',
+ '-d',
+ '../LASTCHANGE.in']])
+else:
+ _action = Action([['cd',
+ '$SRC_DIR/build/util',
+ '&&',
+ 'python',
+ './lastchange.py',
+ '-o',
+ '${SHARED_INTERMEDIATE_DIR}/build/LASTCHANGE',
+ '-d',
+ '../LASTCHANGE.in']], 'Extracting last change to ${SHARED_INTERMEDIATE_DIR}/build/LASTCHANGE')
+_outputs = env.Command(
+ ['${SHARED_INTERMEDIATE_DIR}/build/LASTCHANGE',
+ '${SHARED_INTERMEDIATE_DIR}/build/LASTCHANGE.always'],
+ ['$SRC_DIR/build/util/./lastchange.py'],
+ _action
+)
+input_files.extend(_outputs)
+prerequisites.extend(_outputs)
+target_files.extend(_outputs)
+
+target_files.extend(input_files)
+
+gyp_target = env.Alias('lastchange', target_files)
+env.Requires(gyp_target, prerequisites)
+Return("gyp_target")