GoogleGit

blob: 9a17eaf9e9ae3244b802cac1a7ad8ee99fe2add9 [file] [log] [blame]
  1. # Copyright 2013 The Chromium Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. {
  5. 'variables': {
  6. 'conditions': [
  7. ['disable_nacl==1', {
  8. 'nacl_defines': [
  9. ],
  10. }, {
  11. 'conditions': [
  12. ['OS=="win"', {
  13. 'nacl_defines': [
  14. 'NACL_WINDOWS=1',
  15. 'NACL_LINUX=0',
  16. 'NACL_OSX=0',
  17. 'NACL_ANDROID=0',
  18. ],
  19. }],
  20. ['OS=="linux"', {
  21. 'nacl_defines': [
  22. 'NACL_WINDOWS=0',
  23. 'NACL_LINUX=1',
  24. 'NACL_OSX=0',
  25. 'NACL_ANDROID=0',
  26. ],
  27. }],
  28. ['OS=="mac"', {
  29. 'nacl_defines': [
  30. 'NACL_WINDOWS=0',
  31. 'NACL_LINUX=0',
  32. 'NACL_OSX=1',
  33. 'NACL_ANDROID=0',
  34. ],
  35. }],
  36. ['OS=="android"', {
  37. 'nacl_defines': [
  38. 'NACL_WINDOWS=0',
  39. 'NACL_LINUX=1',
  40. 'NACL_OSX=0',
  41. 'NACL_ANDROID=1',
  42. ],
  43. }],
  44. ],
  45. }],
  46. # TODO(mcgrathr): This duplicates native_client/build/common.gypi;
  47. # we should figure out a way to unify the settings.
  48. ['target_arch=="ia32"', {
  49. 'nacl_defines': [
  50. 'NACL_TARGET_SUBARCH=32',
  51. 'NACL_TARGET_ARCH=x86',
  52. 'NACL_BUILD_SUBARCH=32',
  53. 'NACL_BUILD_ARCH=x86',
  54. ],
  55. }],
  56. ['target_arch=="x64"', {
  57. 'nacl_defines': [
  58. 'NACL_TARGET_SUBARCH=64',
  59. 'NACL_TARGET_ARCH=x86',
  60. 'NACL_BUILD_SUBARCH=64',
  61. 'NACL_BUILD_ARCH=x86',
  62. ],
  63. }],
  64. ['target_arch=="arm"', {
  65. 'nacl_defines': [
  66. 'NACL_BUILD_ARCH=arm',
  67. 'NACL_BUILD_SUBARCH=32',
  68. 'NACL_TARGET_ARCH=arm',
  69. 'NACL_TARGET_SUBARCH=32',
  70. ],
  71. }],
  72. ['target_arch=="mipsel"', {
  73. 'nacl_defines': [
  74. 'NACL_BUILD_ARCH=mips',
  75. 'NACL_BUILD_SUBARCH=32',
  76. 'NACL_TARGET_ARCH=mips',
  77. 'NACL_TARGET_SUBARCH=32',
  78. ],
  79. }],
  80. ],
  81. }
  82. }