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': '<(DEPTH)/JavaScriptGlue/Configurations/DebugRelease.xcconfig',
6   'targets': [
7     {
8       'target_name': 'JavaScriptGlue',
9       'type': 'shared_library',
10       'dependencies': [
11         'Update Version'
12       ],
13       'include_dirs': [
14         '<(DEPTH)/JavaScriptGlue',
15         '<(DEPTH)/JavaScriptGlue/ForwardingHeaders',
16         '<(DEPTH)/JavaScriptGlue/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', '<(DEPTH)/gyp/run-if-exists.sh', '<(DEPTH)/../Tools/Scripts/check-for-global-initializers'
39           ],
40         },
41         {
42           'postbuild_name': 'Check For Weak VTables and Externals',
43           'action': [
44             'sh', '<(DEPTH)/gyp/run-if-exists.sh', '<(DEPTH)/../Tools/Scripts/check-for-weak-vtables-and-externals'
45           ],
46         },
47         {
48           'postbuild_name': 'Remove Headers If Needed',
49           'action': [
50             'sh', '<(DEPTH)/gyp/remove-headers-if-needed.sh'
51           ],
52         },
53       ],
54       'conditions': [
55         ['OS=="mac"', {
56           'mac_bundle': 1,
57           'xcode_settings': {
58             # FIXME: Remove these overrides once JavaScriptGlue.xcconfig is
59             # used only by this project.
60             'INFOPLIST_FILE': '<(DEPTH)/JavaScriptGlue/Info.plist',
61             'EXPORTED_SYMBOLS_FILE': '<(DEPTH)/JavaScriptGlue/JavaScriptGlue.exp', 
62           },
63         }],
64       ],
65     },
66     {
67       'target_name': 'Update Version',
68       'type': 'none',
69       'actions': [
70         {
71           'action_name': 'Update Info.plist with version information',
72           'inputs': [],
73           'outputs': [],
74           'action': [
75             'sh', '<(DEPTH)/gyp/update-info-plist.sh', '<(DEPTH)/JavaScriptGlue/Info.plist'
76           ],
77         },
78       ], # actions
79     },
80   ], # targets
81 }