Skip to content

Commit

Permalink
Switching to clang
Browse files Browse the repository at this point in the history
  • Loading branch information
HostedDinner committed Oct 11, 2017
1 parent c8a479f commit 6715e2e
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 30 deletions.
10 changes: 5 additions & 5 deletions nbproject/Makefile-Debug.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ GREP=grep
NM=nm
CCADMIN=CCadmin
RANLIB=ranlib
CC=gcc
CCC=g++
CXX=g++
CC=clang
CCC=clang++
CXX=clang++
FC=gfortran
AS=as

# Macros
CND_PLATFORM=MinGW-Windows
CND_PLATFORM=CLang-Windows
CND_DLIB_EXT=dll
CND_CONF=Debug
CND_DISTDIR=dist
Expand Down Expand Up @@ -70,7 +70,7 @@ ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe: ${CND_BUILDDIR}/$

${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe: ${OBJECTFILES}
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter ${OBJECTFILES} ${LDLIBSOPTIONS}
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe ${OBJECTFILES} ${LDLIBSOPTIONS}

${OBJECTDIR}/src/ConfigParser.o: src/ConfigParser.cpp
${MKDIR} -p ${OBJECTDIR}/src
Expand Down
10 changes: 5 additions & 5 deletions nbproject/Makefile-Release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ GREP=grep
NM=nm
CCADMIN=CCadmin
RANLIB=ranlib
CC=gcc
CCC=g++
CXX=g++
CC=clang
CCC=clang++
CXX=clang++
FC=gfortran
AS=as

# Macros
CND_PLATFORM=MinGW-Windows
CND_PLATFORM=CLang-Windows
CND_DLIB_EXT=dll
CND_CONF=Release
CND_DISTDIR=dist
Expand Down Expand Up @@ -70,7 +70,7 @@ ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe: ${CND_BUILDDIR}/$

${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe: ${OBJECTFILES}
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter ${OBJECTFILES} ${LDLIBSOPTIONS}
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe ${OBJECTFILES} ${LDLIBSOPTIONS}

${OBJECTDIR}/src/ConfigParser.o: src/ConfigParser.cpp
${MKDIR} -p ${OBJECTDIR}/src
Expand Down
24 changes: 12 additions & 12 deletions nbproject/Makefile-variables.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ CND_BASEDIR=`pwd`
CND_BUILDDIR=build
CND_DISTDIR=dist
# Debug configuration
CND_PLATFORM_Debug=MinGW-Windows
CND_ARTIFACT_DIR_Debug=dist/Debug/MinGW-Windows
CND_ARTIFACT_NAME_Debug=servicestarter
CND_ARTIFACT_PATH_Debug=dist/Debug/MinGW-Windows/servicestarter
CND_PACKAGE_DIR_Debug=dist/Debug/MinGW-Windows/package
CND_PLATFORM_Debug=CLang-Windows
CND_ARTIFACT_DIR_Debug=dist/Debug/CLang-Windows
CND_ARTIFACT_NAME_Debug=servicestarter.exe
CND_ARTIFACT_PATH_Debug=dist/Debug/CLang-Windows/servicestarter.exe
CND_PACKAGE_DIR_Debug=dist/Debug/CLang-Windows/package
CND_PACKAGE_NAME_Debug=servicestarter.zip
CND_PACKAGE_PATH_Debug=dist/Debug/MinGW-Windows/package/servicestarter.zip
CND_PACKAGE_PATH_Debug=dist/Debug/CLang-Windows/package/servicestarter.zip
# Release configuration
CND_PLATFORM_Release=MinGW-Windows
CND_ARTIFACT_DIR_Release=dist/Release/MinGW-Windows
CND_ARTIFACT_NAME_Release=servicestarter
CND_ARTIFACT_PATH_Release=dist/Release/MinGW-Windows/servicestarter
CND_PACKAGE_DIR_Release=dist/Release/MinGW-Windows/package
CND_PLATFORM_Release=CLang-Windows
CND_ARTIFACT_DIR_Release=dist/Release/CLang-Windows
CND_ARTIFACT_NAME_Release=servicestarter.exe
CND_ARTIFACT_PATH_Release=dist/Release/CLang-Windows/servicestarter.exe
CND_PACKAGE_DIR_Release=dist/Release/CLang-Windows/package
CND_PACKAGE_NAME_Release=servicestarter.zip
CND_PACKAGE_PATH_Release=dist/Release/MinGW-Windows/package/servicestarter.zip
CND_PACKAGE_PATH_Release=dist/Release/CLang-Windows/package/servicestarter.zip
#
# include compiler specific variables
#
Expand Down
10 changes: 7 additions & 3 deletions nbproject/Package-Debug.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

# Macros
TOP=`pwd`
CND_PLATFORM=MinGW-Windows
CND_PLATFORM=CLang-Windows
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dll
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter
OUTPUT_BASENAME=servicestarter
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe
OUTPUT_BASENAME=servicestarter.exe
PACKAGE_TOP_DIR=servicestarter/

# Functions
Expand Down Expand Up @@ -71,6 +71,10 @@ cd "${TOP}"
makeDirectory "${NBTMPDIR}/servicestarter/bin"
copyFileToTmpDir "${OUTPUT_PATH}.exe" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}.exe" 0755

cd "${TOP}"
makeDirectory "${NBTMPDIR}/servicestarter/bin"
copyFileToTmpDir "${OUTPUT_PATH}.exe" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}.exe" 0755


# Generate zip file
cd "${TOP}"
Expand Down
10 changes: 7 additions & 3 deletions nbproject/Package-Release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

# Macros
TOP=`pwd`
CND_PLATFORM=MinGW-Windows
CND_PLATFORM=CLang-Windows
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dll
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter
OUTPUT_BASENAME=servicestarter
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe
OUTPUT_BASENAME=servicestarter.exe
PACKAGE_TOP_DIR=servicestarter/

# Functions
Expand Down Expand Up @@ -71,6 +71,10 @@ cd "${TOP}"
makeDirectory "${NBTMPDIR}/servicestarter/bin"
copyFileToTmpDir "${OUTPUT_PATH}.exe" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}.exe" 0755

cd "${TOP}"
makeDirectory "${NBTMPDIR}/servicestarter/bin"
copyFileToTmpDir "${OUTPUT_PATH}.exe" "${NBTMPDIR}/${PACKAGE_TOP_DIR}bin/${OUTPUT_BASENAME}.exe" 0755


# Generate zip file
cd "${TOP}"
Expand Down
6 changes: 4 additions & 2 deletions nbproject/configurations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<warningLevel>2</warningLevel>
</ccTool>
<linkerTool>
<output>${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter</output>
<output>${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe</output>
<additionalDep>${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/resource.o</additionalDep>
<linkerLibItems>
<linkerOptionItem>${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/resource.o</linkerOptionItem>
Expand Down Expand Up @@ -221,7 +221,7 @@
<developmentMode>5</developmentMode>
</asmTool>
<linkerTool>
<output>${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter</output>
<output>${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/servicestarter.exe</output>
<additionalDep>${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/resource.o</additionalDep>
<linkerLibItems>
<linkerOptionItem>${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/resource.o</linkerOptionItem>
Expand All @@ -231,6 +231,8 @@
</compileType>
<packaging>
<packType>Zip</packType>
<output>${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/package/servicestarter.zip</output>
<commandlineTool>zip</commandlineTool>
<packFileList>
<packFileListElem type="File"
to="${PACKAGE_TOP_DIR}bin/config.xml"
Expand Down

0 comments on commit 6715e2e

Please sign in to comment.