]> khamidou — GitHub mirrors - electron.git/commitdiff
Discard "framework_name"
authorCheng Zhao <zcbenz@gmail.com>
Mon, 29 Dec 2014 17:49:10 +0000 (09:49 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 29 Dec 2014 17:49:10 +0000 (09:49 -0800)
We are using "'product_name' Framework" directly in C++, so we should
keep the name consistent in C++ and gyp

atom.gyp

index e5be6835144f67e518824f172732405179f7b8aa..8f0e9b04026b217c14098b0fd42b4200c1bd0368 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
@@ -5,7 +5,6 @@
     ],
     'project_name': 'atom',
     'product_name': 'Atom',
-    'framework_name': 'Atom Framework',
     'app_sources': [
       'atom/app/atom_main.cc',
       'atom/app/atom_main.h',
               'destination': '<(PRODUCT_DIR)/<(product_name).app/Contents/Frameworks',
               'files': [
                 '<(PRODUCT_DIR)/<(product_name) Helper.app',
-                '<(PRODUCT_DIR)/<(framework_name).framework',
+                '<(PRODUCT_DIR)/<(product_name) Framework.framework',
                 'external_binaries/Squirrel.framework',
                 'external_binaries/ReactiveCocoa.framework',
                 'external_binaries/Mantle.framework',
       'targets': [
         {
           'target_name': '<(project_name)_framework',
-          'product_name': '<(framework_name)',
+          'product_name': '<(product_name) Framework',
           'type': 'shared_library',
           'dependencies': [
             '<(project_name)_lib',
             'LIBRARY_SEARCH_PATHS': [
               '<(libchromiumcontent_library_dir)',
             ],
-            'LD_DYLIB_INSTALL_NAME': '@rpath/<(framework_name).framework/<(framework_name)',
+            'LD_DYLIB_INSTALL_NAME': '@rpath/<(product_name) Framework.framework/<(product_name) Framework',
             'LD_RUNPATH_SEARCH_PATHS': [
               '@loader_path/Libraries',
             ],
           },
           'copies': [
             {
-              'destination': '<(PRODUCT_DIR)/<(framework_name).framework/Versions/A/Libraries',
+              'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Libraries',
               'files': [
                 '<(libchromiumcontent_library_dir)/ffmpegsumo.so',
                 '<(libchromiumcontent_library_dir)/libchromiumcontent.dylib',
               ],
             },
             {
-              'destination': '<(PRODUCT_DIR)/<(framework_name).framework/Versions/A/Resources',
+              'destination': '<(PRODUCT_DIR)/<(product_name) Framework.framework/Versions/A/Resources',
               'files': [
                 '<(PRODUCT_DIR)/Inspector',
                 '<(PRODUCT_DIR)/crash_report_sender.app',
               'postbuild_name': 'Add symlinks for framework subdirectories',
               'action': [
                 'tools/mac/create-framework-subdir-symlinks.sh',
-                '<(framework_name)',
+                '<(project_name) Framework',
                 'Libraries',
                 'Frameworks',
               ],