Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sorted out finding the XML file on win32

  • Loading branch information...
commit 12a02102a40fe1288e4edf004e0ee10256000221 1 parent 553dfe6
@royshil royshil authored
View
3  firebreath-plugin/Win/ResourceRecovery.cpp
@@ -1,5 +1,6 @@
#include <string>
+#include "ResourceRecoveryWin.h"
std::string getResourcesDirectory() {
- return "./";
+ return _NITE_DIR;
}
View
6 firebreath-plugin/Win/projectDef.cmake
@@ -6,6 +6,8 @@
# Windows template platform definition CMake file
# Included from ../CMakeLists.txt
+file(WRITE "Win/ResourceRecoveryWin.h" "char* _NITE_DIR=\"${NITE_DIR}/Data/\";")
+
# remember that the current source dir is the project root; this file is in Win/
file (GLOB PLATFORM RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
Win/[^.]*.cpp
@@ -29,9 +31,11 @@ set (SOURCES
add_windows_plugin(${PROJECT_NAME} SOURCES)
+add_dependencies(${PROJECT_NAME} simple_templater)
+
add_custom_command(TARGET ${PROJECT_NAME}
POST_BUILD
- COMMAND copy_binary_win32.bat
+ COMMAND copy_binary_win32.bat ${CMAKE_CFG_INTDIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
View
1  firebreath-plugin/cmake/Modules/FindNITE.cmake
@@ -79,6 +79,7 @@ endif()
set(NITE_LIBRARIES ${NITE_LIBRARY} )
set(NITE_LIBS ${NITE_LIBRARY} )
set(NITE_INCLUDE_DIRS ${NITE_INCLUDE_DIR} )
+set(NITE_DIR "${NITE_INCLUDE_DIR}/../" )
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set ???_FOUND to TRUE
View
5 firebreath-plugin/copy_binary_win32.bat
@@ -1,6 +1,9 @@
echo off
+
del /F /Q "..\chrome-extension\plugin"
rmdir /S /Q "..\chrome-extension\plugin"
mkdir "..\chrome-extension\plugin"
copy "build\bin\depthjsplugin\Debug\npdepthjsplugin.dll" "..\chrome-extension\plugin"
-Debug\simple_templater.exe ..\chrome-extension\manifest.json.template $PLUGIN_PATH "{ ""path"": ""plugin/npdepthjsplugin.dll"" }" ..\chrome-extension\manifest.json
+
+del /F /Q ..\chrome-extension\manifest.json
+%1\simple_templater.exe ..\chrome-extension\manifest.json.template $PLUGIN_PATH "{ ""path"": ""plugin/npdepthjsplugin.dll"" }" ..\chrome-extension\manifest.json
Please sign in to comment.
Something went wrong with that request. Please try again.