]> khamidou — GitHub mirrors - electron.git/commitdiff
Strip generate binaries
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Apr 2015 04:06:23 +0000 (12:06 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Apr 2015 04:06:23 +0000 (12:06 +0800)
common.gypi

index f7c0b327ba7fc2f89e3ac81cae03f6f135e77af5..7e57301316d4e44ea03c759c16a9ea1600f1ff95 100644 (file)
         ],
       }],
       ['_type in ["executable", "shared_library"]', {
-        # On some machines setting CLANG_CXX_LIBRARY doesn't work for linker.
         'xcode_settings': {
+          # On some machines setting CLANG_CXX_LIBRARY doesn't work for linker.
           'OTHER_LDFLAGS': [
             '-stdlib=libc++'
           ],
+          # Generates symbols and strip the binary.
+          'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
+          'DEPLOYMENT_POSTPROCESSING': 'YES',
+          'STRIP_INSTALLED_PRODUCT': 'YES',
+          'STRIPFLAGS': '-x',
         },
       }],
     ],
         ],
       },
     },
-    'xcode_settings': {
-      'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
-    },
   },
   'conditions': [
     # Settings to compile with clang under OS X.