Skip to content

Commit

Permalink
fix(driftfx): macOS & Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Dec 27, 2019
1 parent f3e08f9 commit c7be544
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/linux/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
</source>
<link>
<arg value="-latomic"/>
<arg value="-lX11"/>
<arg value="-l:libGL.so.1" unless:set="gcc.libpath.opengl"/>
<arg line="-L ${gcc.libpath.opengl} -l:libGL.so.1" if:set="gcc.libpath.opengl"/>
</link>
Expand Down
6 changes: 5 additions & 1 deletion config/macos/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@
<!-- DriftFX -->
<build module="driftfx" lang="c++" if:true="${binding.driftfx}">
<beforeCompile>
<compile>
<fileset dir=".">
<include name="${src.main}/src/**/*.m"/>
</fileset>
</compile>
<compile lang="c++" flags="-DGLEW_STATIC -DBUILDING_DLL">
<arg value="-I${src.main.rel}/include"/>
<arg value="-I${src.main.rel}/src"/>
Expand All @@ -220,7 +225,6 @@
<fileset dir="." includes="${src.main}/lib/utils/src/*"/>
<fileset dir=".">
<include name="${src.main}/src/**/*.cpp"/>
<include name="${src.main}/src/**/*.m"/>
<exclude name="${src.main}/src/gl/glx/*"/>
<exclude name="${src.main}/src/gl/wgl/*"/>
<exclude name="${src.main}/src/prism/d3d/*"/>
Expand Down

0 comments on commit c7be544

Please sign in to comment.