Skip to content

Commit

Permalink
Use .bat files to route 'python emxxx' to 'emxxx' on Windows. Remove …
Browse files Browse the repository at this point in the history
…reference to juj/vs-tool emxxx.exe in favor of the new .bat files.
  • Loading branch information
juj committed Apr 7, 2013
1 parent 5a642b1 commit 1c4c481
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/Platform/Emscripten.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ endif()

# Specify the compilers to use for C and C++
if ("${CMAKE_C_COMPILER}" STREQUAL "")
set(CMAKE_C_COMPILER "emcc.exe")
set(CMAKE_CXX_COMPILER "em++.exe")
set(CMAKE_AR "emar.exe")
set(CMAKE_RANLIB "emranlib.exe")
set(CMAKE_C_COMPILER "emcc.bat")
set(CMAKE_CXX_COMPILER "em++.bat")
set(CMAKE_AR "emar.bat")
set(CMAKE_RANLIB "emranlib.bat")
endif()

set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Expand Down
2 changes: 2 additions & 0 deletions em++.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\em++ %*
2 changes: 2 additions & 0 deletions em-config.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\em-config %*
2 changes: 2 additions & 0 deletions emar.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\emar %*
2 changes: 2 additions & 0 deletions emconfigure.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\emconfigure %*
2 changes: 2 additions & 0 deletions emlibtool.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\emlibtool %*
2 changes: 2 additions & 0 deletions emmake.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\emmake %*
2 changes: 2 additions & 0 deletions emranlib.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
python %~dp0\emranlib %*

1 comment on commit 1c4c481

@svenstaro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What

Please sign in to comment.