Fix building pdfium for x64 with ninja under windows.
[pdfium.git] / build / standalone.gypi
index d919c16..5a65fa5 100644 (file)
@@ -37,6 +37,7 @@
       'host_arch%': '<(host_arch)',
       'target_arch%': '<(target_arch)',
     },
+    # These two are needed by V8.
     'host_arch%': '<(host_arch)',
     'target_arch%': '<(target_arch)',
     'werror%': '-Werror',
           }],
         ],  # conditions
       },
+      'Debug_x64': {
+        'inherit_from': ['Debug'],
+        'msvs_configuration_platform': 'x64',
+      },
+      'Release_x64': {
+        'inherit_from': ['Release'],
+        'msvs_configuration_platform': 'x64',
+      },
     },
     'defines!': [
       'DEBUG',
     ],
-    'cflags!': [
+    'cflags': [
       '-Wall',
       '-W',
       '-Wno-unused-parameter',
     ],
     'msvs_cygwin_dirs': ['<(DEPTH)/v8/third_party/cygwin'],
     'msvs_configuration_attributes': {
-      'OutputDirectory': '<(DEPTH)\\out\\$(ConfigurationName)',
+      'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)',
       'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)',
       'CharacterSet': '1',
     },
         #   1 == /SUBSYSTEM:CONSOLE
         #   2 == /SUBSYSTEM:WINDOWS
         'SubSystem': '1',
-        'AdditionalDependencies': [
-          'advapi32.lib',
-          'gdi32.lib',
-          'user32.lib',
-        ],
       },
     },
     'xcode_settings': {
     ['OS=="win"', {
       'target_defaults': {
         'defines': [
+          'NOMINMAX',
           '_CRT_SECURE_NO_DEPRECATE',
           '_CRT_NONSTDC_NO_DEPRECATE',
         ],
     }],  # OS=="win"
     ['OS=="mac"', {
       'target_defaults': {
-        'link_settings': {
-          'libraries': [
-            '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
-            '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
-          ],
-        },
         'target_conditions': [
           ['_type!="static_library"', {
             'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
       },  # target_defaults
     }],  # OS=="mac"
   ],
+  'xcode_settings': {
+    # See comment in Chromium's common.gypi for why this is needed.
+    'SYMROOT': '<(DEPTH)/xcodebuild',
+  }
 }
\ No newline at end of file