Skip to content

Commit

Permalink
Bug 1280600: Merge Android and b2g branches in build scripts where po…
Browse files Browse the repository at this point in the history
…ssible, r=glandium

B2g now has 'OS_TARGET' set to 'Android'. This patch merges Android
and Gonk branches in the build scripts where possible.

MozReview-Commit-ID: 9hKA0Gc62Xc
  • Loading branch information
tdz committed Jul 11, 2016
1 parent 7065b7c commit a610242
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion b2g/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ EXTRA_COMPONENTS += [
'WebappsUpdateTimer.js',
]

if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
if CONFIG['OS_TARGET'] != 'Android':
EXTRA_COMPONENTS += [
'CommandLine.js',
'OopCommandLine.js',
Expand Down
2 changes: 1 addition & 1 deletion dom/media/systemservices/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ else:
DEFINES['WEBRTC_POSIX'] = True


if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'):
if CONFIG['OS_TARGET'] == 'Android':
EXPORTS += [
'OpenSLESProvider.h'
]
Expand Down
12 changes: 1 addition & 11 deletions netwerk/base/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -287,17 +287,7 @@ elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
'NetworkInfoServiceCocoa.cpp',
'nsNetworkInfoService.cpp',
]
elif CONFIG['OS_TARGET'] == 'Linux':
SOURCES += [
'NetworkInfoServiceLinux.cpp',
'nsNetworkInfoService.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
SOURCES += [
'NetworkInfoServiceLinux.cpp',
'nsNetworkInfoService.cpp',
]
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
elif CONFIG['OS_ARCH'] == 'Linux':
SOURCES += [
'NetworkInfoServiceLinux.cpp',
'nsNetworkInfoService.cpp',
Expand Down
2 changes: 1 addition & 1 deletion testing/mochitest/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ USE_EXTENSION_MANIFEST = True

FINAL_TARGET_PP_FILES += ['install.rdf']

if CONFIG['MOZ_BUILD_APP'] != 'mobile/android' and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
if CONFIG['OS_TARGET'] != 'Android':
DEFINES['MOCHITEST_BOOTSTRAP'] = True
FINAL_TARGET_FILES += ['bootstrap.js']

Expand Down
2 changes: 1 addition & 1 deletion toolkit/components/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if CONFIG['MOZ_URL_CLASSIFIER']:

DIRS += ['captivedetect']

if CONFIG['MOZ_WIDGET_TOOLKIT'] != "gonk" and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'android':
if CONFIG['OS_TARGET'] != 'Android':
DIRS += ['terminator']

DIRS += ['build']
Expand Down

0 comments on commit a610242

Please sign in to comment.