Skip to content
Browse files

more gyp improvements

  • Loading branch information...
1 parent 48642f5 commit 83d7c8215a23387515883161691067126674baca @eklitzke committed Feb 21, 2012
Showing with 12 additions and 2 deletions.
  1. +12 −2 drakebot.gyp
View
14 drakebot.gyp
@@ -25,12 +25,22 @@
# drakebot with debugging symbols, logging
'target_name': 'drakebot',
'cflags': ['-g'],
- 'defines': [ 'DEFINE_DEBUG', ],
+ 'defines': [ 'DEBUG', ],
},
{
# optimized drakebot
'target_name': 'drakebot_opt',
- 'defines': [ 'DEFINE_NDEBUG', ],
+ 'cflags': ['-fomit-frame-pointer'],
+ 'defines': [ 'NDEBUG', ],
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'strip optimized binary',
+ 'action': [
+ 'strip',
+ '-s',
+ '$(BUILT_PRODUCTS_DIR)/$(EXECUTABLE_PATH)'],
+ },
+ ],
},
],
}

0 comments on commit 83d7c82

Please sign in to comment.
Something went wrong with that request. Please try again.