summaryrefslogtreecommitdiffstats
path: root/o3d/build/libs.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/build/libs.gyp')
-rw-r--r--o3d/build/libs.gyp24
1 files changed, 24 insertions, 0 deletions
diff --git a/o3d/build/libs.gyp b/o3d/build/libs.gyp
index 765afbb..43daadb 100644
--- a/o3d/build/libs.gyp
+++ b/o3d/build/libs.gyp
@@ -5,6 +5,8 @@
{
'variables': {
'chromium_code': 1,
+ 'dx_redist_path': '../../o3d-internal/third_party/dx_nov_2007_redist',
+ 'dx_redist_exists': '<!(python file_exists.py ../../o3d-internal/third_party/dx_nov_2007_redist/d3dx9_36.dll)',
},
'includes': [
'common.gypi',
@@ -40,4 +42,26 @@
],
},
],
+ 'conditions': [
+ ['OS=="win"', {
+ 'targets': [
+ {
+ 'target_name': 'dx_dll',
+ 'type': 'none',
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)',
+ 'conditions' : [
+ ['"<(dx_redist_exists)" == "True"', {
+ 'files': ['<(dx_redist_path)/d3dx9_36.dll'],
+ },{
+ 'files': ['$(windir)/system32/d3dx9_36.dll'],
+ }],
+ ],
+ },
+ ],
+ },
+ ],
+ }],
+ ],
}