2011-02-28 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / Source / JavaScriptGlue / gyp / JavaScriptGlue.gyp
1 {
2   'includes': [
3     'JavaScriptGlue.gypi',
4   ],
5   'xcode_config_file': '../Configurations/DebugRelease.xcconfig',
6   'targets': [
7     {
8       'target_name': 'JavaScriptGlue',
9       'type': 'shared_library',
10       'dependencies': [
11         'Update Version'
12       ],
13       'include_dirs': [
14         '..',
15         '../ForwardingHeaders',
16         '../icu',
17         '<(PRODUCT_DIR)/include',
18       ],
19       'sources': [
20         '<@(javascriptglue_files)',
21         '<(PRODUCT_DIR)/JavaScriptCore.framework',
22         '$(SDKROOT)/System/Library/Frameworks/CoreServices.framework',
23         '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
24         '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
25       ],
26       'xcode_config_file': '../Configurations/JavaScriptGlue.xcconfig',
27       'configurations': {
28         'Debug': {},
29       },
30       'default_configuration': 'Debug',
31       'defines': [
32         'WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST',
33       ],
34       'postbuilds': [
35         {
36           'postbuild_name': 'Check For Global Initializers',
37           'action': [
38             'sh', 'run-if-exists.sh', 'check-for-global-initializers'
39           ],
40         },
41         {
42           'postbuild_name': 'Check For Weak VTables and Externals',
43           'action': [
44             'sh', 'run-if-exists.sh', 'check-for-weak-vtables-and-externals'
45           ],
46         },
47         {
48           'postbuild_name': 'Remove Headers If Needed',
49           'action': [
50             'sh', 'remove-headers-if-needed.sh'
51           ],
52         },
53       ],
54       'conditions': [
55         ['OS=="mac"', {
56           'mac_bundle': 1,
57         }],
58       ],
59     },
60     {
61       'target_name': 'Update Version',
62       'type': 'none',
63       'actions': [
64         {
65           'action_name': 'Update Info.plist with version information',
66           'inputs': [],
67           'outputs': [],
68           'action': [
69             'sh', 'update-info-plist.sh'
70           ],
71         },
72       ], # actions
73     },
74   ], # targets
75 }