2016-12-03 23:05:09 +01:00
|
|
|
From 815ed9402c0da91ee607bc61414c77d350f4a009 Mon Sep 17 00:00:00 2001
|
2016-08-09 20:29:33 +02:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Sun, 6 Nov 2016 17:57:18 +0100
|
2016-12-02 12:44:23 +01:00
|
|
|
Subject: [PATCH 07/10] Remove copy_scripts target
|
2016-08-09 20:29:33 +02:00
|
|
|
|
|
|
|
Executing .bat scripts on Linux is a no-go
|
|
|
|
---
|
|
|
|
BUILD.gn | 17 ---------------
|
|
|
|
src/angle.gyp | 61 ------------------------------------------------------
|
|
|
|
src/libGLESv2.gypi | 7 -------
|
|
|
|
3 files changed, 85 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/BUILD.gn b/BUILD.gn
|
2016-12-02 12:44:23 +01:00
|
|
|
index 4232008..f3ecf89 100644
|
2016-08-09 20:29:33 +02:00
|
|
|
--- a/BUILD.gn
|
|
|
|
+++ b/BUILD.gn
|
|
|
|
@@ -60,17 +60,6 @@ config("extra_warnings") {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-if (is_win) {
|
|
|
|
- copy("copy_compiler_dll") {
|
|
|
|
- sources = [
|
|
|
|
- "$windows_sdk_path/Redist/D3D/$target_cpu/d3dcompiler_47.dll",
|
|
|
|
- ]
|
|
|
|
- outputs = [
|
|
|
|
- "$root_out_dir/d3dcompiler_47.dll",
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
angle_undefine_configs = [ "//build/config/compiler:default_include_dirs" ]
|
|
|
|
|
2016-12-02 12:44:23 +01:00
|
|
|
# Holds the shared includes so we only need to list them once.
|
|
|
|
@@ -396,12 +385,6 @@ static_library("libANGLE") {
|
2016-08-09 20:29:33 +02:00
|
|
|
":libANGLE_config",
|
|
|
|
":internal_config",
|
|
|
|
]
|
|
|
|
-
|
|
|
|
- if (is_win) {
|
|
|
|
- data_deps = [
|
|
|
|
- ":copy_compiler_dll",
|
|
|
|
- ]
|
|
|
|
- }
|
|
|
|
}
|
|
|
|
|
|
|
|
config("shared_library_public_config") {
|
|
|
|
diff --git a/src/angle.gyp b/src/angle.gyp
|
2016-12-02 12:44:23 +01:00
|
|
|
index e4e8ba9..7a4061d 100644
|
2016-08-09 20:29:33 +02:00
|
|
|
--- a/src/angle.gyp
|
|
|
|
+++ b/src/angle.gyp
|
|
|
|
@@ -169,27 +169,6 @@
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
-
|
|
|
|
- {
|
|
|
|
- 'target_name': 'copy_scripts',
|
|
|
|
- 'type': 'none',
|
2016-12-02 12:44:23 +01:00
|
|
|
- 'includes': [ '../gyp/common_defines.gypi', ],
|
2016-08-09 20:29:33 +02:00
|
|
|
- 'hard_dependency': 1,
|
|
|
|
- 'copies':
|
|
|
|
- [
|
|
|
|
- {
|
|
|
|
- 'destination': '<(angle_gen_path)',
|
|
|
|
- 'files': [ 'copy_compiler_dll.bat', '<(angle_id_script_base)' ],
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- 'conditions':
|
|
|
|
- [
|
|
|
|
- ['angle_build_winrt==1',
|
|
|
|
- {
|
|
|
|
- 'type' : 'shared_library',
|
|
|
|
- }],
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
],
|
|
|
|
'conditions':
|
|
|
|
[
|
|
|
|
@@ -201,7 +180,6 @@
|
|
|
|
'target_name': 'commit_id',
|
|
|
|
'type': 'none',
|
2016-12-02 12:44:23 +01:00
|
|
|
'includes': [ '../gyp/common_defines.gypi', ],
|
2016-08-09 20:29:33 +02:00
|
|
|
- 'dependencies': [ 'copy_scripts', ],
|
|
|
|
'hard_dependency': 1,
|
|
|
|
'actions':
|
|
|
|
[
|
|
|
|
@@ -267,44 +245,5 @@
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}],
|
|
|
|
- ['OS=="win"',
|
|
|
|
- {
|
|
|
|
- 'targets':
|
|
|
|
- [
|
|
|
|
- {
|
|
|
|
- 'target_name': 'copy_compiler_dll',
|
|
|
|
- 'type': 'none',
|
|
|
|
- 'dependencies': [ 'copy_scripts', ],
|
2016-12-02 12:44:23 +01:00
|
|
|
- 'includes': [ '../gyp/common_defines.gypi', ],
|
2016-08-09 20:29:33 +02:00
|
|
|
- 'conditions':
|
|
|
|
- [
|
|
|
|
- ['angle_build_winrt==0',
|
|
|
|
- {
|
|
|
|
- 'actions':
|
|
|
|
- [
|
|
|
|
- {
|
|
|
|
- 'action_name': 'copy_dll',
|
|
|
|
- 'message': 'Copying D3D Compiler DLL...',
|
|
|
|
- 'msvs_cygwin_shell': 0,
|
|
|
|
- 'inputs': [ 'copy_compiler_dll.bat' ],
|
|
|
|
- 'outputs': [ '<(PRODUCT_DIR)/d3dcompiler_47.dll' ],
|
|
|
|
- 'action':
|
|
|
|
- [
|
|
|
|
- "<(angle_gen_path)/copy_compiler_dll.bat",
|
|
|
|
- "$(PlatformName)",
|
|
|
|
- "<(windows_sdk_path)",
|
|
|
|
- "<(PRODUCT_DIR)"
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
- ], #actions
|
|
|
|
- }],
|
|
|
|
- ['angle_build_winrt==1',
|
|
|
|
- {
|
|
|
|
- 'type' : 'shared_library',
|
|
|
|
- }],
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
- ], # targets
|
|
|
|
- }],
|
|
|
|
] # conditions
|
|
|
|
}
|
|
|
|
diff --git a/src/libGLESv2.gypi b/src/libGLESv2.gypi
|
2016-12-02 12:44:23 +01:00
|
|
|
index cd69e44..506147e 100644
|
2016-08-09 20:29:33 +02:00
|
|
|
--- a/src/libGLESv2.gypi
|
|
|
|
+++ b/src/libGLESv2.gypi
|
2016-12-02 12:44:23 +01:00
|
|
|
@@ -1035,13 +1035,6 @@
|
2016-08-09 20:29:33 +02:00
|
|
|
'ANGLE_ENABLE_NULL',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
- ['angle_build_winrt==0 and OS=="win"',
|
|
|
|
- {
|
|
|
|
- 'dependencies':
|
|
|
|
- [
|
|
|
|
- 'copy_compiler_dll'
|
|
|
|
- ],
|
|
|
|
- }],
|
|
|
|
['angle_build_winrt==1',
|
|
|
|
{
|
|
|
|
'msvs_requires_importlibrary' : 'true',
|
|
|
|
--
|
|
|
|
2.10.2
|
|
|
|
|