Very basic stuff working on linux 32-bit with dmd and phobos2.
This commit is contained in:
parent
f23eee9828
commit
67f0225e42
152 changed files with 113 additions and 0 deletions
68
tests/FullSkeleton/programServer/CMakeLists.txt
Normal file
68
tests/FullSkeleton/programServer/CMakeLists.txt
Normal file
|
@ -0,0 +1,68 @@
|
|||
#################################
|
||||
|
||||
if (BUILD_SERVER)
|
||||
|
||||
#################################
|
||||
# Project
|
||||
##############
|
||||
|
||||
project(ProgramServer D)
|
||||
|
||||
#################################
|
||||
# Dependencies
|
||||
##############
|
||||
|
||||
#################################
|
||||
# Compiler Switches
|
||||
##############
|
||||
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${CMAKE_BINARY_DIR}/libraryA
|
||||
${CMAKE_BINARY_DIR}/libraryB
|
||||
)
|
||||
|
||||
add_definitions(
|
||||
)
|
||||
|
||||
#################################
|
||||
# Source Files
|
||||
##############
|
||||
|
||||
add_executable(server
|
||||
ProgramServerMain.d
|
||||
)
|
||||
|
||||
#################################
|
||||
# Linking
|
||||
##############
|
||||
|
||||
target_link_libraries(server
|
||||
A
|
||||
B
|
||||
)
|
||||
|
||||
#################################
|
||||
# Install Files
|
||||
##############
|
||||
|
||||
file(GLOB sources "${CMAKE_CURRENT_SOURCE_DIR}/*.d")
|
||||
install(
|
||||
FILES
|
||||
${sources}
|
||||
DESTINATION
|
||||
include/FullSkeleton
|
||||
)
|
||||
|
||||
install(TARGETS server
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
||||
#################################
|
||||
|
||||
endif (BUILD_SERVER)
|
||||
|
34
tests/FullSkeleton/programServer/ProgramServerMain.d
Normal file
34
tests/FullSkeleton/programServer/ProgramServerMain.d
Normal file
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
*
|
||||
* ProgramServer -- A conditionally built server
|
||||
*
|
||||
* Authors: Tim Burrell
|
||||
* Copyright: Copyright (c) 2007
|
||||
* License: <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>
|
||||
*
|
||||
**/
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Module
|
||||
///////////////////////////////////////
|
||||
|
||||
module programServer.ProgramServerMain;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Imports
|
||||
///////////////////////////////////////
|
||||
|
||||
import config;
|
||||
|
||||
import libraryA.io.Output;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// Main
|
||||
///////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Main function
|
||||
**/
|
||||
void main(char [][] Args) {
|
||||
Out("Conditionally Built Server says hello!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue