Browse Source

Tested building 32- and 64-bit module.

git-svn-id: https://svn.microneil.com/svn/PKG-SNF4CGP-WIN/trunk@24 7d91e7c8-5a61-404e-b06a-95855fde9112
master
adeniz 11 years ago
parent
commit
765900bd5b

+ 7
- 0
BuildPackage/BuildExeX32.cmd View File

@@ -4,6 +4,8 @@ REM Copyright (c) 2013 ARM Research Corporation
setlocal
del SNFClient.exe SNF2Check.exe SNF4CGP.exe
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
set path=c:\MinGW\bin;%path%
set CXX=c++
set LIB=c:\MinGW\lib\libws2_32.a
@@ -11,5 +13,10 @@ set CXXFLAGS=-Isource\CodeDweller -Isource\SNFMulti
set LDFLAGS=%LDFLAGS% %LIB% -static
%CXX% source\SNFClient\*.cpp source\CodeDweller\*.cpp source\SNFMulti\*.cpp %CXXFLAGS% -o SNFClient.exe %LDFLAGS%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
%CXX% source\SNF2Check\*.cpp source\CodeDweller\*.cpp source\SNFMulti\*.cpp %CXXFLAGS% -o SNF2Check.exe %LDFLAGS%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
%CXX% source\SNF4CGP\*.cpp source\CodeDweller\*.cpp source\SNFMulti\*.cpp %CXXFLAGS% -o SNF4CGP.exe %LDFLAGS%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%

+ 7
- 0
BuildPackage/BuildExeX64.cmd View File

@@ -4,6 +4,8 @@ REM Copyright (c) 2013 ARM Research Corporation
setlocal
del SNFClient.exe SNF2Check.exe SNF4CGP.exe
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
set path=c:\MinGW-64\bin;%path%
set CXX=x86_64-pc-mingw32-c++
set LIB=c:\MinGW-64\x86_64-pc-mingw32\lib64\libws2_32.a
@@ -11,5 +13,10 @@ set CXXFLAGS=-Isource\CodeDweller -Isource\SNFMulti
set LDFLAGS=%LDFLAGS% %LIB% -static
%CXX% source\SNFClient\*.cpp source\CodeDweller\*.cpp source\SNFMulti\*.cpp %CXXFLAGS% -o SNFClient.exe %LDFLAGS%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
%CXX% source\SNF2Check\*.cpp source\CodeDweller\*.cpp source\SNFMulti\*.cpp %CXXFLAGS% -o SNF2Check.exe %LDFLAGS%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
%CXX% source\SNF4CGP\*.cpp source\CodeDweller\*.cpp source\SNFMulti\*.cpp %CXXFLAGS% -o SNF4CGP.exe %LDFLAGS%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%

+ 12
- 4
BuildPackage/BuildModuleX32.cmd View File

@@ -1,7 +1,15 @@
REM Command file to create the 64-bit SNF4CGP module for Windows.
REM Command file to create the 32-bit SNF4CGP module for Windows.
REM
REM Copyright (c) 2013 ARM Research Corporation
setlocal
BuildExeX32.cmd
CreateModule.cmd
call BuildExeX32.cmd
IF %ERRORLEVEL% NEQ 0 (
ECHO Error from BuildExeX32.cmd
EXIT /B %ERRORLEVEL%
)
call CreateModule.cmd
IF %ERRORLEVEL% NEQ 0 (
ECHO Error from CreateModule.cmd
EXIT /B %ERRORLEVEL%
)

+ 15
- 0
BuildPackage/BuildModuleX64.cmd View File

@@ -0,0 +1,15 @@
REM Command file to create the 64-bit SNF4CGP module for Windows.
REM
REM Copyright (c) 2013 ARM Research Corporation
call BuildExeX64.cmd
IF %ERRORLEVEL% NEQ 0 (
ECHO Error from BuildExeX64.cmd
EXIT /B %ERRORLEVEL%
)
call CreateModule.cmd
IF %ERRORLEVEL% NEQ 0 (
ECHO Error from CreateModule.cmd
EXIT /B %ERRORLEVEL%
)

+ 26
- 0
BuildPackage/CreateModule.cmd View File

@@ -9,32 +9,58 @@ set MOD_PATH=%TEMP_DIR%\%MOD_DIR%
set MOD_ZIPFILE=CGPSNF-MODULE.zip
DEL %MOD_ZIPFILE%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
RMDIR /S /Q %TEMP_DIR%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
MKDIR %TEMP_DIR%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
MKDIR %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
MKDIR %MOD_PATH%\hold
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
MKDIR %MOD_PATH%\Doc
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY SNF4CGP.exe %MOD_PATH%\CGPSNF.exe
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY SNFClient.exe %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY SNF2Check.exe %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY curl.exe %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY Scripts\getRulebase.cmd.sample %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY test_files\*.txt %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY test_files\cleanmsg.txt %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY config_files\*.sample %MOD_PATH%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
COPY Doc\*.* %MOD_PATH%\Doc
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
CD %TEMP_DIR%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
7z a -tzip ..\%MOD_ZIPFILE% %MOD_DIR%\
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
CD ..
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
RMDIR /S /Q %TEMP_DIR%
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%

Loading…
Cancel
Save