Rename "frameworks" to "external_binaries".
authorCheng Zhao <zcbenz@gmail.com>
Sun, 18 May 2014 15:35:07 +0000 (23:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sun, 18 May 2014 15:35:07 +0000 (23:35 +0800)
atom.gyp
script/cibuild
script/update-external-binaries.py [moved from script/update-frameworks.py with 92% similarity]
script/update.py

index 8cd7acc..335b021 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
   },
   'target_defaults': {
     'mac_framework_dirs': [
-      '<(atom_source_root)/frameworks',
+      '<(atom_source_root)/external_binaries',
     ],
     'includes': [
        # Rules for excluding e.g. foo_win.cc from the build on non-Windows.
               'files': [
                 '<(PRODUCT_DIR)/<(product_name) Helper.app',
                 '<(PRODUCT_DIR)/<(framework_name).framework',
-                'frameworks/Squirrel.framework',
-                'frameworks/ReactiveCocoa.framework',
-                'frameworks/Mantle.framework',
+                'external_binaries/Squirrel.framework',
+                'external_binaries/ReactiveCocoa.framework',
+                'external_binaries/Mantle.framework',
               ],
             },
             {
                 '<(libchromiumcontent_library_dir)/libEGL.dll',
                 '<(libchromiumcontent_library_dir)/libGLESv2.dll',
                 '<(libchromiumcontent_resources_dir)/content_shell.pak',
-                'frameworks/d3dcompiler_43.dll',
-                'frameworks/xinput1_3.dll',
+                'external_binaries/d3dcompiler_43.dll',
+                'external_binaries/xinput1_3.dll',
               ],
             },
             {
           'link_settings': {
             'libraries': [
               '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
-              'frameworks/Squirrel.framework',
-              'frameworks/ReactiveCocoa.framework',
-              'frameworks/Mantle.framework',
+              'external_binaries/Squirrel.framework',
+              'external_binaries/ReactiveCocoa.framework',
+              'external_binaries/Mantle.framework',
             ],
           },
           'mac_bundle': 1,
index 5e7f1e5..c235ed0 100755 (executable)
@@ -16,6 +16,7 @@ def main():
   rm_rf(os.path.join(SOURCE_ROOT, 'out'))
   rm_rf(os.path.join(SOURCE_ROOT, 'node_modules'))
   rm_rf(os.path.join(SOURCE_ROOT, 'frameworks'))
+  rm_rf(os.path.join(SOURCE_ROOT, 'external_binaries'))
   rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'apm', 'node_modules'))
   rm_rf(os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor', 'download',
                      'libchromiumcontent'))
similarity index 92%
rename from script/update-frameworks.py
rename to script/update-external-binaries.py
index 89f7884..c8045c2 100755 (executable)
@@ -15,7 +15,7 @@ FRAMEWORKS_URL = 'https://github.com/atom/atom-shell-frameworks/releases' \
 def main():
   os.chdir(SOURCE_ROOT)
   try:
-    os.makedirs('frameworks')
+    os.makedirs('external_binaries')
   except OSError as e:
     if e.errno != errno.EEXIST:
       raise
@@ -33,7 +33,7 @@ def main():
 def download_and_unzip(framework):
   zip_path = download_framework(framework)
   if zip_path:
-    extract_zip(zip_path, 'frameworks')
+    extract_zip(zip_path, 'external_binaries')
 
 
 def download_framework(framework):
index 241d746..63b7b4f 100755 (executable)
@@ -11,12 +11,12 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
 def main():
   os.chdir(SOURCE_ROOT)
 
-  update_frameworks()
+  update_external_binaries()
   update_gyp()
 
 
-def update_frameworks():
-  uf = os.path.join('script', 'update-frameworks.py')
+def update_external_binaries():
+  uf = os.path.join('script', 'update-external-binaries.py')
   subprocess.check_call([sys.executable, uf])