Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: src/base/base.gyp

Issue 518023002: Move base library definitions from v8.gyp to base.gyp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all.gyp ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/base.gyp
diff --git a/src/base/base.gyp b/src/base/base.gyp
index 6b1b8f2ab4e11e1299d328cb5dd2157984da62c3..33d9b14309e8dc1434fe120e2b4f2f3f8fa6e4fe 100644
--- a/src/base/base.gyp
+++ b/src/base/base.gyp
@@ -9,12 +9,261 @@
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
'targets': [
{
+ 'target_name': 'base',
+ 'type': 'static_library',
+ 'variables': {
+ 'optimize': 'max',
+ },
+ 'include_dirs+': [
tfarina 2014/08/29 15:09:38 include_dirs+? I don't recall seem this on Chromiu
+ '../..',
+ ],
+ 'sources': [
+ 'atomicops.h',
+ 'atomicops_internals_arm64_gcc.h',
+ 'atomicops_internals_arm_gcc.h',
+ 'atomicops_internals_atomicword_compat.h',
+ 'atomicops_internals_mac.h',
+ 'atomicops_internals_mips_gcc.h',
+ 'atomicops_internals_tsan.h',
+ 'atomicops_internals_x86_gcc.cc',
+ 'atomicops_internals_x86_gcc.h',
+ 'atomicops_internals_x86_msvc.h',
+ 'bits.h',
+ 'build_config.h',
+ 'cpu.cc',
+ 'cpu.h',
+ 'flags.h',
+ 'lazy-instance.h',
+ 'logging.cc',
+ 'logging.h',
+ 'macros.h',
+ 'once.cc',
+ 'once.h',
+ 'platform/elapsed-timer.h',
+ 'platform/time.cc',
+ 'platform/time.h',
+ 'platform/condition-variable.cc',
+ 'platform/condition-variable.h',
+ 'platform/mutex.cc',
+ 'platform/mutex.h',
+ 'platform/platform.h',
+ 'platform/semaphore.cc',
+ 'platform/semaphore.h',
+ 'safe_conversions.h',
+ 'safe_conversions_impl.h',
+ 'safe_math.h',
+ 'safe_math_impl.h',
+ 'sys-info.cc',
+ 'sys-info.h',
+ 'utils/random-number-generator.cc',
+ 'utils/random-number-generator.h',
+ ],
+ 'conditions': [
+ ['want_separate_host_toolset==1', {
+ 'toolsets': ['host', 'target'],
+ }, {
+ 'toolsets': ['target'],
+ }],
+ ['OS=="linux"', {
+ 'link_settings': {
tfarina 2014/08/29 15:09:38 I think you should keep indenting two spaces here
+ 'libraries': [
+ '-lrt'
+ ]
+ },
+ 'sources': [
+ 'platform/platform-linux.cc',
+ 'platform/platform-posix.cc'
+ ],
+ }
+ ],
+ ['OS=="android"', {
+ 'sources': [
+ 'platform/platform-posix.cc'
+ ],
+ 'conditions': [
+ ['host_os=="mac"', {
+ 'target_conditions': [
+ ['_toolset=="host"', {
+ 'sources': [
+ 'platform/platform-macos.cc'
+ ]
+ }, {
+ 'sources': [
+ 'platform/platform-linux.cc'
+ ]
+ }],
+ ],
+ }, {
+ # TODO(bmeurer): What we really want here, is this:
+ #
+ # 'link_settings': {
+ # 'target_conditions': [
+ # ['_toolset=="host"', {
+ # 'libraries': [
+ # '-lrt'
+ # ]
+ # }]
+ # ]
+ # },
+ #
+ # but we can't do this right now, as the AOSP does not support
+ # linking against the host librt, so we need to work around this
+ # for now, using the following hack (see platform/time.cc):
+ 'target_conditions': [
+ ['_toolset=="host"', {
+ 'defines': [
+ 'V8_LIBRT_NOT_AVAILABLE=1',
+ ],
+ }],
+ ],
+ 'sources': [
+ 'platform/platform-linux.cc'
+ ]
+ }],
+ ],
+ },
+ ],
+ ['OS=="qnx"', {
+ 'link_settings': {
+ 'target_conditions': [
+ ['_toolset=="host" and host_os=="linux"', {
+ 'libraries': [
+ '-lrt'
+ ],
+ }],
+ ['_toolset=="target"', {
+ 'libraries': [
+ '-lbacktrace'
+ ],
+ }],
+ ],
+ },
+ 'sources': [
+ 'platform/platform-posix.cc',
+ 'qnx-math.h',
+ ],
+ 'target_conditions': [
+ ['_toolset=="host" and host_os=="linux"', {
+ 'sources': [
+ 'platform/platform-linux.cc'
+ ],
+ }],
+ ['_toolset=="host" and host_os=="mac"', {
+ 'sources': [
+ 'platform/platform-macos.cc'
+ ],
+ }],
+ ['_toolset=="target"', {
+ 'sources': [
+ 'platform/platform-qnx.cc'
+ ],
+ }],
+ ],
+ },
+ ],
+ ['OS=="freebsd"', {
+ 'link_settings': {
+ 'libraries': [
+ '-L/usr/local/lib -lexecinfo',
+ ]},
+ 'sources': [
+ 'platform/platform-freebsd.cc',
+ 'platform/platform-posix.cc'
+ ],
+ }
+ ],
+ ['OS=="openbsd"', {
+ 'link_settings': {
+ 'libraries': [
+ '-L/usr/local/lib -lexecinfo',
+ ]},
+ 'sources': [
+ 'platform/platform-openbsd.cc',
+ 'platform/platform-posix.cc'
+ ],
+ }
+ ],
+ ['OS=="netbsd"', {
+ 'link_settings': {
+ 'libraries': [
+ '-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo',
+ ]},
+ 'sources': [
+ 'platform/platform-openbsd.cc',
+ 'platform/platform-posix.cc'
+ ],
+ }
+ ],
+ ['OS=="solaris"', {
+ 'link_settings': {
+ 'libraries': [
+ '-lnsl',
+ ]},
+ 'sources': [
+ 'platform/platform-solaris.cc',
+ 'platform/platform-posix.cc'
+ ],
+ }
+ ],
+ ['OS=="mac"', {
+ 'sources': [
+ 'platform/platform-macos.cc',
+ 'platform/platform-posix.cc'
+ ]},
+ ],
+ ['OS=="win"', {
+ 'defines': [
+ '_CRT_RAND_S' # for rand_s()
+ ],
+ 'variables': {
+ 'gyp_generators': '<!(echo $GYP_GENERATORS)',
+ },
+ 'conditions': [
+ ['gyp_generators=="make"', {
+ 'variables': {
+ 'build_env': '<!(uname -o)',
+ },
+ 'conditions': [
+ ['build_env=="Cygwin"', {
+ 'sources': [
+ 'platform/platform-cygwin.cc',
+ 'platform/platform-posix.cc'
+ ],
+ }, {
+ 'sources': [
+ 'platform/platform-win32.cc',
+ 'win32-headers.h',
+ 'win32-math.cc',
+ 'win32-math.h'
+ ],
+ }],
+ ],
+ 'link_settings': {
+ 'libraries': [ '-lwinmm', '-lws2_32' ],
+ },
+ }, {
+ 'sources': [
+ 'platform/platform-win32.cc',
+ 'win32-headers.h',
+ 'win32-math.cc',
+ 'win32-math.h'
+ ],
+ 'msvs_disabled_warnings': [4351, 4355, 4800],
+ 'link_settings': {
+ 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
+ },
+ }],
+ ],
+ }],
+ ],
+ },
+ {
'target_name': 'base-unittests',
'type': 'executable',
'dependencies': [
'../../testing/gtest.gyp:gtest',
'../../testing/gtest.gyp:gtest_main',
- '../../tools/gyp/v8.gyp:v8_libbase',
+ 'base',
],
'include_dirs': [
'../..',
« no previous file with comments | « build/all.gyp ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698