Very basic stuff working on linux 32-bit with dmd and phobos2.

This commit is contained in:
Steve King 2010-08-10 21:55:30 -07:00
commit 67f0225e42
152 changed files with 113 additions and 0 deletions

View 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)

View 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!");
}