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

Unified Diff: tools/relocation_packer/relocation_packer.gyp

Issue 404553003: Create builds configured for ARM and AARCH64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename DT tags to DT_ANDROID_REL_XXX Created 6 years, 5 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 | « no previous file | tools/relocation_packer/src/debug.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/relocation_packer/relocation_packer.gyp
diff --git a/tools/relocation_packer/relocation_packer.gyp b/tools/relocation_packer/relocation_packer.gyp
index 4642a27c2238500a5aa98ea3ccd7a56ada2783cf..893cc4a7063fd8bc4bb6b57c72ab21753cef4cbc 100644
--- a/tools/relocation_packer/relocation_packer.gyp
+++ b/tools/relocation_packer/relocation_packer.gyp
@@ -3,11 +3,25 @@
# found in the LICENSE file.
{
+ 'variables': {
+ 'target_define%': 'TARGET_UNSUPPORTED',
+ 'conditions': [
+ [ 'target_arch == "arm"', {
+ 'target_define': 'TARGET_ARM',
+ }],
+ [ 'target_arch == "arm64"', {
+ 'target_define': 'TARGET_ARM64',
+ }],
+ ],
+ },
'targets': [
{
'target_name': 'lib_relocation_packer',
'toolsets': ['host'],
'type': 'static_library',
+ 'defines': [
+ '<(target_define)',
+ ],
'dependencies': [
'../../third_party/elfutils/elfutils.gyp:libelf',
],
@@ -23,6 +37,9 @@
'target_name': 'relocation_packer',
'toolsets': ['host'],
'type': 'executable',
+ 'defines': [
+ '<(target_define)',
+ ],
'dependencies': [
'../../third_party/elfutils/elfutils.gyp:libelf',
'lib_relocation_packer',
@@ -35,6 +52,9 @@
'target_name': 'relocation_packer_unittests',
'toolsets': ['host'],
'type': 'executable',
+ 'defines': [
+ '<(target_define)',
+ ],
'cflags': [
'-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"',
],
« no previous file with comments | « no previous file | tools/relocation_packer/src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698