Show
Ignore:
Timestamp:
05/28/09 15:10:25 (4 years ago)
Author:
saturday06
Message:

qsvn???

Location:
lang/objective-cplusplus/i3/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/am/i3.am

    r33633 r33643  
    33 
    44i3_exe        : i3${EXEEXT} # for IDE 
    5 i3_CXXFLAGS_DEFAULT = ${PTHREAD_CFLAGS} ${BOOST_CPPFLAGS} \ 
    6                       -I${top_srcdir}/src \ 
    7                       -I${top_srcdir}/src/mil/include \ 
    8                       -I${top_srcdir}/src/${GUI_DIR} \ 
    9                       -I${top_srcdir}/src/${OS_DIR} \ 
    10                       -Iintl \ 
    11                       -funit-at-a-time \ 
    12                       ${WARNING_OPTIONS} \ 
    13                       -DLOCALEDIR=\"${localedir}\" 
    14  
    15 i3_CXXFLAGS_RELEASE = -fno-rtti 
    16 i3_CXXFLAGS_DEBUG   = -g -O0 -D_DEBUG 
    17 #i3_CXXFLAGS_DEBUG   += -fprofile-arcs -ftest-coverage 
    18  
    19 i3_LDFLAGS_DEFAULT  = ${PTHREAD_LIBS} ${BOOST_LDFLAGS} 
    20 i3_LDFLAGS_RELEASE  =  
    21 i3_LDFLAGS_DEBUG    = -fprofile-arcs -ftest-coverage 
    22  
    23 i3_LDADD_DEFAULT = ${LIBINTL} 
    24 i3_LDADD_RELEASE =  
    25 i3_LDADD_DEBUG   = 
    265 
    276i3_SOURCES_NO_MAIN = \ 
     
    3918src/${GUI_DIR}/CompletionWindowPlatform.cpp 
    4019 
     20i3_SOURCES  = ${i3_SOURCES_NO_MAIN} src/Main.cpp 
     21i3_CXXFLAGS = ${PTHREAD_CFLAGS} ${BOOST_CPPFLAGS} \ 
     22              -I${top_srcdir}/src \ 
     23              -I${top_srcdir}/src/mil/include \ 
     24              -I${top_srcdir}/src/${GUI_DIR} \ 
     25              -I${top_srcdir}/src/${OS_DIR} \ 
     26              -Iintl \ 
     27              -funit-at-a-time \ 
     28              -fno-operator-names \ 
     29              ${WARNING_OPTIONS} \ 
     30              -DLOCALEDIR=\"${localedir}\" 
     31i3_LDFLAGS  = ${PTHREAD_LIBS} ${BOOST_LDFLAGS} 
     32i3_LDADD    = ${LIBINTL} 
     33 
    4134if ENABLE_DEBUG 
    42 i3_SOURCES  = ${i3_SOURCES_NO_MAIN} src/Main.cpp 
    43 i3_CXXFLAGS = ${i3_CXXFLAGS_DEFAULT} ${i3_CXXFLAGS_DEBUG} 
    44 i3_LDFLAGS  = ${i3_LDFLAGS_DEFAULT} ${i3_LDFLAGS_DEBUG} 
    45 i3_LDADD    = ${i3_LDADD_DEFAULT} ${i3_LDADD_DEBUG} 
     35i3_CXXFLAGS += -g -O0 -D_DEBUG # -pg -fprofile-arcs -ftest-coverage 
     36i3_LDFLAGS  +=  
     37i3_LDADD    += 
     38 
     39debug.i3 : gch i3_exe 
     40        rm -f gmon.out 
     41        sh scripts/clean_gcov.sh 
     42        ./i3 
     43        sh scripts/lcov.sh 
     44 
    4645else 
    47 i3_SOURCES  = ${i3_SOURCES_NO_MAIN} src/Main.cpp 
    48 i3_CXXFLAGS = ${i3_CXXFLAGS_DEFAULT} ${i3_CXXFLAGS_RELEASE} 
    49 i3_LDFLAGS  = ${i3_LDFLAGS_DEFAULT} ${i3_LDFLAGS_RELEASE} 
    50 i3_LDADD    = ${i3_LDADD_DEFAULT} ${i3_LDADD_RELEASE} 
     46i3_CXXFLAGS += -fno-rtti 
     47i3_LDFLAGS  += 
     48i3_LDADD    += 
    5149endif 
    5250 
     
    5957src/os-windows/Utf8ToUtf16Stream.cpp 
    6058if WITH_GUI_WINDOWS 
    61 #i3_CXXFLAGS_DEFAULT += -DUNICODE -D_UNICODE 
     59#i3_CXXFLAGS += -DUNICODE -D_UNICODE 
    6260endif 
    63 #i3_LDFLAGS_DEFAULT  += /mingw/lib/binmode.o -mwindows 
    64 i3_LDFLAGS_DEFAULT  += -mwindows 
    65 i3_LDADD_DEFAULT    += -lgdi32 -luser32 -lpsapi -lshlwapi 
     61#i3_LDFLAGS  += /mingw/lib/binmode.o -mwindows 
     62i3_LDFLAGS  += -mwindows 
     63i3_LDADD    += -lgdi32 -luser32 -lpsapi -lshlwapi 
    6664else 
    6765if WITH_GUI_WINDOWS 
    6866i3_SOURCES_NO_MAIN  += src/os-windows/WindowsCommon.cpp 
    69 i3_LDFLAGS_DEFAULT  += -mwindows 
     67i3_LDFLAGS  += -mwindows 
    7068endif 
    7169endif 
     
    7371if WITH_CYGWIN 
    7472# for cygwin boost/test/included/unit_test.hpp 
    75 i3_CXXFLAGS_DEFAULT += -DBOOST_DISABLE_WIN32 
     73i3_CXXFLAGS += -DBOOST_DISABLE_WIN32 
    7674endif 
    7775 
    7876if WITH_GUI_WINDOWS 
    79 i3_CXXFLAGS_DEFAULT += -DMIL_GUI_WINDOWS 
    80 i3_LDADD_DEFAULT    += -lgdi32 -luser32 -lpsapi -lshlwapi -lcomctl32 
     77i3_CXXFLAGS += -DMIL_GUI_WINDOWS 
     78i3_LDADD    += -lgdi32 -luser32 -lpsapi -lshlwapi -lcomctl32 
    8179endif 
    8280 
    8381if WITH_GUI_COCOA 
    84 i3_CXXFLAGS_DEFAULT += -DMIL_GUI_COCOA ${COCOA_CXXFLAGS} 
    85 i3_LDADD_DEFAULT    += ${COCOA_LIBS} 
     82i3_CXXFLAGS += -DMIL_GUI_COCOA ${COCOA_CXXFLAGS} 
     83i3_LDADD    += ${COCOA_LIBS} 
    8684endif 
    87  
    88 # --------------------------------------- 
    89 # Common 
    90  
    91 i3_debug_exe  : i3_debug$(EXEEXT) # for IDE 
    92 run.i3_debug : gch i3_debug_exe 
    93         rm -f gmon.out 
    94         sh scripts/clean_gcov.sh 
    95         ./i3_debug 
    96         sh scripts/lcov.sh 
    9785 
    9886# 
     
    10290if ENABLE_DEBUG 
    10391if USE_GCC_PRECOMPILED_HEADER 
    104 CLEANFILES    += src/PrecompiledHeaders.h.gch 
    105 gch_files     += src/PrecompiledHeaders.h.gch 
     92CLEANFILES += src/PrecompiledHeaders.h.gch 
     93gch_files  += src/PrecompiledHeaders.h.gch 
    10694endif 
    10795endif 
     
    117105        $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 
    118106        $(AM_CPPFLAGS) $(CPPFLAGS) $(i3_CXXFLAGS) \ 
    119         $(CXXFLAGS_NO_LANG) -x objective-c++-header ${top_srcdir}/src/PrecompiledHeaders.h 
     107        $(CXXFLAGS_NO_LANG) -x ${GCH_LANG} ${top_srcdir}/src/PrecompiledHeaders.h 
    120108 
  • lang/objective-cplusplus/i3/trunk/am/i3_test.am

    r33633 r33643  
    44i3_test_exe :   i3_test${EXEEXT} # for IDE 
    55 
    6 i3_test_SOURCES_DEFAULT = ${i3_SOURCES_NO_MAIN} \ 
     6i3_test_SOURCES = ${i3_SOURCES_NO_MAIN} \ 
    77src/mil/src/BoostTestMain.cpp \ 
    88src/mil/src/BoostTestDummyLib.cpp \ 
     
    1414src/${GUI_DIR}/GuiTest2.cpp 
    1515 
    16  
    17 i3_test_SOURCES   = ${i3_test_SOURCES_DEFAULT} 
    1816i3_test_CXXFLAGS  = ${i3_CXXFLAGS} -frtti 
    1917i3_test_LDFLAGS   = ${i3_LDFLAGS} 
     
    2321# Common 
    2422 
    25 i3_test_debug_exe : i3_test_debug$(EXEEXT) # for IDE 
    26 run.i3_test_debug : gch i3_test_debug_exe 
     23if ENABLE_DEBUG 
     24run.i3_test : gch i3_test_exe 
    2725        rm -f gmon.out 
    2826        sh scripts/clean_gcov.sh 
    29         ./i3_test_debug 
     27        ./i3_test 
    3028        sh scripts/lcov.sh 
    3129 
    32  
    33 #i3_test_debug_SOURCES   = $(i3_test_SOURCES) 
    34 #i3_test_debug_CXXFLAGS  = $(i3_debug_CXXFLAGS) 
    35 #i3_test_debug_LDFLAGS   = $(i3_debug_LDFLAGS) 
    36 #i3_test_debug_LDADD     = $(i3_debug_LDADD) 
     30endif 
  • lang/objective-cplusplus/i3/trunk/am/mil_test.am

    r33633 r33643  
    33 
    44mil_test_exe  : mil_test${EXEEXT} # for IDE 
    5  
    6  
    75 
    86mil_test_SOURCES = \ 
     
    1412src/mil/src/BoostTestDummyLib.cpp 
    1513 
    16 mil_test_CXXFLAGS = ${i3_CXXFLAGS_DEFAULT} \ 
     14mil_test_CXXFLAGS = ${i3_CXXFLAGS} \ 
    1715                    ${WARNING_OPTIONS} \ 
    1816                    -I${top_srcdir}/src/mil/include \ 
     
    2725endif 
    2826 
    29  
    30 # --------------------------------------- 
    31 # Common 
    32  
    33 mil_test_debug_exe : mil_test_debug$(EXEEXT) # for IDE 
    34 run.mil_test_debug : gch mil_test_debug_exe 
     27if ENABLE_DEBUG 
     28run.mil_test : gch mil_test_exe 
    3529        rm -f gmon.out 
    3630        sh scripts/clean_gcov.sh 
    37         ./mil_test_debug 
     31        ./mil_test 
    3832        sh scripts/lcov.sh 
     33endif 
    3934 
    4035# 
     
    4439if ENABLE_DEBUG 
    4540if USE_GCC_PRECOMPILED_HEADER 
    46 CLEANFILES    += src/mil/include/mil/PrecompiledHeaders.h.gch 
    47 gch_files     += src/mil/include/mil/PrecompiledHeaders.h.gch 
     41CLEANFILES += src/mil/include/mil/PrecompiledHeaders.h.gch 
     42gch_files  += src/mil/include/mil/PrecompiledHeaders.h.gch 
    4843endif 
    4944endif 
     
    5853        $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 
    5954        $(AM_CPPFLAGS) $(CPPFLAGS) $(mil_test_CXXFLAGS) \ 
    60         $(CXXFLAGS_NO_LANG) -x objective-c++-header ${top_srcdir}/src/mil/include/mil/PrecompiledHeaders.h 
     55        $(CXXFLAGS_NO_LANG) -x ${GCH_LANG} ${top_srcdir}/src/mil/include/mil/PrecompiledHeaders.h 
    6156 
    62 #mil_test_debug_SOURCES  = $(mil_test_SOURCES) 
    63 #mil_test_debug_CXXFLAGS = $(i3_CXXFLAGS_DEFAULT) \ 
    64 #                          ${WARNING_OPTIONS} \ 
    65 #                          -I${top_srcdir}/src/mil/include \ 
    66 #                          -g -pg -fprofile-arcs -ftest-coverage 
    67 # 
    68 #mil_test_debug_LDFLAGS  = $(mil_test_LDFLAGS) 
    69 #mil_test_debug_LDADD    = $(mil_test_LDADD) 
    70  
    71  
  • lang/objective-cplusplus/i3/trunk/configure.ac

    r33633 r33643  
    1515# --------------------------------------- 
    1616# Programs 
     17 
    1718AC_USE_SYSTEM_EXTENSIONS 
    1819AC_CANONICAL_HOST 
     
    2021AC_PROG_CXX 
    2122AC_LANG([C++]) 
    22  
    23 AM_CONDITIONAL(USE_GCC_PRECOMPILED_HEADER, test "$GXX" = "yes") 
    2423 
    2524AC_ARG_ENABLE(debug, 
     
    4645AM_CONDITIONAL(ENABLE_WINDOWS_RELEASE, test "$enable_windows_release" = "yes") 
    4746 
     47if test "$GXX" = "yes"; then 
     48#    AC_MSG_CHECKING([precompiled headers]) 
     49#    CXXFLAGS_ORIG="$CXXFLAGS" 
     50#    CXXFLAGS="$CXXFLAGS -x c++-header" 
     51#    AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],  
     52#                   [AC_MSG_RESULT([yes]); use_gch=yes], 
     53#                   [AC_MSG_RESULT([no])]) 
     54#    CXXFLAGS="$CXXFLAGS_ORIG" 
     55    use_gch=yes 
     56else 
     57    use_gch=no 
     58fi 
     59AM_CONDITIONAL(USE_GCC_PRECOMPILED_HEADER, test "$use_gch" = "yes") 
     60 
     61 
    4862# --------------------------------------- 
    4963# OS 
     
    7589case "$with_gui" in 
    7690    windows) 
     91        GCH_LANG="c++-header" 
    7792    ;; 
    7893    cocoa) 
     94        GCH_LANG="objective-c++-header" 
    7995        CXXFLAGS="$CXXFLAGS -x objective-c++" 
    8096        LDFLAGS="$LDFLAGS -x none -framework Cocoa" 
     
    104120        fi 
    105121 
     122        GCH_LANG="objective-c++-header" 
    106123        CXXFLAGS="$CXXFLAGS -x objective-c++" 
    107124        LDFLAGS="$LDFLAGS -x none" 
     
    112129    ;; 
    113130esac 
     131AC_SUBST(GCH_LANG) 
    114132 
    115133OS_DIR="os-$with_os" 
     
    176194# Checks for library functions. 
    177195 
    178 #AC_CHECK_LIB([argtable2],[arg_parse], [], [echo "argtable2 not found"]) 
    179  
    180196# 
    181197# popt 
     
    183199 
    184200AC_CHECK_LIB([popt],[poptGetContext],  
    185     [ 
    186         LIBS="$LIBS -lpopt $LIBINTL" 
    187     ],  
    188     [ 
    189         AC_CHECK_LIB([popt],[poptFreeContext], [], [echo "popt not found"]) 
    190     ], 
    191     ["$LIBINTL"]) 
     201             [LIBS="$LIBS -lpopt $LIBINTL"],  
     202             [AC_CHECK_LIB([popt],[poptFreeContext])], 
     203             ["$LIBINTL"]) 
    192204 
    193205# 
     
    203215# atomic operations 
    204216# 
     217 
    205218AC_MSG_CHECKING([for __sync_bool_compare_and_swap]) 
    206219prog="int data = 0;  __sync_bool_compare_and_swap(&data, 0, 1);"