Changeset 33643 for lang/objective-cplusplus/i3
- Timestamp:
- 05/28/09 15:10:25 (4 years ago)
- Location:
- lang/objective-cplusplus/i3/trunk
- Files:
-
- 4 modified
-
am/i3.am (modified) (6 diffs)
-
am/i3_test.am (modified) (3 diffs)
-
am/mil_test.am (modified) (5 diffs)
-
configure.ac (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/am/i3.am
r33633 r33643 3 3 4 4 i3_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-rtti16 i3_CXXFLAGS_DEBUG = -g -O0 -D_DEBUG17 #i3_CXXFLAGS_DEBUG += -fprofile-arcs -ftest-coverage18 19 i3_LDFLAGS_DEFAULT = ${PTHREAD_LIBS} ${BOOST_LDFLAGS}20 i3_LDFLAGS_RELEASE =21 i3_LDFLAGS_DEBUG = -fprofile-arcs -ftest-coverage22 23 i3_LDADD_DEFAULT = ${LIBINTL}24 i3_LDADD_RELEASE =25 i3_LDADD_DEBUG =26 5 27 6 i3_SOURCES_NO_MAIN = \ … … 39 18 src/${GUI_DIR}/CompletionWindowPlatform.cpp 40 19 20 i3_SOURCES = ${i3_SOURCES_NO_MAIN} src/Main.cpp 21 i3_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}\" 31 i3_LDFLAGS = ${PTHREAD_LIBS} ${BOOST_LDFLAGS} 32 i3_LDADD = ${LIBINTL} 33 41 34 if 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} 35 i3_CXXFLAGS += -g -O0 -D_DEBUG # -pg -fprofile-arcs -ftest-coverage 36 i3_LDFLAGS += 37 i3_LDADD += 38 39 debug.i3 : gch i3_exe 40 rm -f gmon.out 41 sh scripts/clean_gcov.sh 42 ./i3 43 sh scripts/lcov.sh 44 46 45 else 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} 46 i3_CXXFLAGS += -fno-rtti 47 i3_LDFLAGS += 48 i3_LDADD += 51 49 endif 52 50 … … 59 57 src/os-windows/Utf8ToUtf16Stream.cpp 60 58 if WITH_GUI_WINDOWS 61 #i3_CXXFLAGS _DEFAULT+= -DUNICODE -D_UNICODE59 #i3_CXXFLAGS += -DUNICODE -D_UNICODE 62 60 endif 63 #i3_LDFLAGS _DEFAULT+= /mingw/lib/binmode.o -mwindows64 i3_LDFLAGS _DEFAULT+= -mwindows65 i3_LDADD _DEFAULT+= -lgdi32 -luser32 -lpsapi -lshlwapi61 #i3_LDFLAGS += /mingw/lib/binmode.o -mwindows 62 i3_LDFLAGS += -mwindows 63 i3_LDADD += -lgdi32 -luser32 -lpsapi -lshlwapi 66 64 else 67 65 if WITH_GUI_WINDOWS 68 66 i3_SOURCES_NO_MAIN += src/os-windows/WindowsCommon.cpp 69 i3_LDFLAGS _DEFAULT+= -mwindows67 i3_LDFLAGS += -mwindows 70 68 endif 71 69 endif … … 73 71 if WITH_CYGWIN 74 72 # for cygwin boost/test/included/unit_test.hpp 75 i3_CXXFLAGS _DEFAULT+= -DBOOST_DISABLE_WIN3273 i3_CXXFLAGS += -DBOOST_DISABLE_WIN32 76 74 endif 77 75 78 76 if WITH_GUI_WINDOWS 79 i3_CXXFLAGS _DEFAULT+= -DMIL_GUI_WINDOWS80 i3_LDADD _DEFAULT+= -lgdi32 -luser32 -lpsapi -lshlwapi -lcomctl3277 i3_CXXFLAGS += -DMIL_GUI_WINDOWS 78 i3_LDADD += -lgdi32 -luser32 -lpsapi -lshlwapi -lcomctl32 81 79 endif 82 80 83 81 if WITH_GUI_COCOA 84 i3_CXXFLAGS _DEFAULT+= -DMIL_GUI_COCOA ${COCOA_CXXFLAGS}85 i3_LDADD _DEFAULT+= ${COCOA_LIBS}82 i3_CXXFLAGS += -DMIL_GUI_COCOA ${COCOA_CXXFLAGS} 83 i3_LDADD += ${COCOA_LIBS} 86 84 endif 87 88 # ---------------------------------------89 # Common90 91 i3_debug_exe : i3_debug$(EXEEXT) # for IDE92 run.i3_debug : gch i3_debug_exe93 rm -f gmon.out94 sh scripts/clean_gcov.sh95 ./i3_debug96 sh scripts/lcov.sh97 85 98 86 # … … 102 90 if ENABLE_DEBUG 103 91 if USE_GCC_PRECOMPILED_HEADER 104 CLEANFILES += src/PrecompiledHeaders.h.gch105 gch_files += src/PrecompiledHeaders.h.gch92 CLEANFILES += src/PrecompiledHeaders.h.gch 93 gch_files += src/PrecompiledHeaders.h.gch 106 94 endif 107 95 endif … … 117 105 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 118 106 $(AM_CPPFLAGS) $(CPPFLAGS) $(i3_CXXFLAGS) \ 119 $(CXXFLAGS_NO_LANG) -x objective-c++-header${top_srcdir}/src/PrecompiledHeaders.h107 $(CXXFLAGS_NO_LANG) -x ${GCH_LANG} ${top_srcdir}/src/PrecompiledHeaders.h 120 108 -
lang/objective-cplusplus/i3/trunk/am/i3_test.am
r33633 r33643 4 4 i3_test_exe : i3_test${EXEEXT} # for IDE 5 5 6 i3_test_SOURCES _DEFAULT= ${i3_SOURCES_NO_MAIN} \6 i3_test_SOURCES = ${i3_SOURCES_NO_MAIN} \ 7 7 src/mil/src/BoostTestMain.cpp \ 8 8 src/mil/src/BoostTestDummyLib.cpp \ … … 14 14 src/${GUI_DIR}/GuiTest2.cpp 15 15 16 17 i3_test_SOURCES = ${i3_test_SOURCES_DEFAULT}18 16 i3_test_CXXFLAGS = ${i3_CXXFLAGS} -frtti 19 17 i3_test_LDFLAGS = ${i3_LDFLAGS} … … 23 21 # Common 24 22 25 i 3_test_debug_exe : i3_test_debug$(EXEEXT) # for IDE26 run.i3_test _debug : gch i3_test_debug_exe23 if ENABLE_DEBUG 24 run.i3_test : gch i3_test_exe 27 25 rm -f gmon.out 28 26 sh scripts/clean_gcov.sh 29 ./i3_test _debug27 ./i3_test 30 28 sh scripts/lcov.sh 31 29 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) 30 endif -
lang/objective-cplusplus/i3/trunk/am/mil_test.am
r33633 r33643 3 3 4 4 mil_test_exe : mil_test${EXEEXT} # for IDE 5 6 7 5 8 6 mil_test_SOURCES = \ … … 14 12 src/mil/src/BoostTestDummyLib.cpp 15 13 16 mil_test_CXXFLAGS = ${i3_CXXFLAGS _DEFAULT} \14 mil_test_CXXFLAGS = ${i3_CXXFLAGS} \ 17 15 ${WARNING_OPTIONS} \ 18 16 -I${top_srcdir}/src/mil/include \ … … 27 25 endif 28 26 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 27 if ENABLE_DEBUG 28 run.mil_test : gch mil_test_exe 35 29 rm -f gmon.out 36 30 sh scripts/clean_gcov.sh 37 ./mil_test _debug31 ./mil_test 38 32 sh scripts/lcov.sh 33 endif 39 34 40 35 # … … 44 39 if ENABLE_DEBUG 45 40 if USE_GCC_PRECOMPILED_HEADER 46 CLEANFILES += src/mil/include/mil/PrecompiledHeaders.h.gch47 gch_files += src/mil/include/mil/PrecompiledHeaders.h.gch41 CLEANFILES += src/mil/include/mil/PrecompiledHeaders.h.gch 42 gch_files += src/mil/include/mil/PrecompiledHeaders.h.gch 48 43 endif 49 44 endif … … 58 53 $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 59 54 $(AM_CPPFLAGS) $(CPPFLAGS) $(mil_test_CXXFLAGS) \ 60 $(CXXFLAGS_NO_LANG) -x objective-c++-header${top_srcdir}/src/mil/include/mil/PrecompiledHeaders.h55 $(CXXFLAGS_NO_LANG) -x ${GCH_LANG} ${top_srcdir}/src/mil/include/mil/PrecompiledHeaders.h 61 56 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-coverage67 #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 15 15 # --------------------------------------- 16 16 # Programs 17 17 18 AC_USE_SYSTEM_EXTENSIONS 18 19 AC_CANONICAL_HOST … … 20 21 AC_PROG_CXX 21 22 AC_LANG([C++]) 22 23 AM_CONDITIONAL(USE_GCC_PRECOMPILED_HEADER, test "$GXX" = "yes")24 23 25 24 AC_ARG_ENABLE(debug, … … 46 45 AM_CONDITIONAL(ENABLE_WINDOWS_RELEASE, test "$enable_windows_release" = "yes") 47 46 47 if 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 56 else 57 use_gch=no 58 fi 59 AM_CONDITIONAL(USE_GCC_PRECOMPILED_HEADER, test "$use_gch" = "yes") 60 61 48 62 # --------------------------------------- 49 63 # OS … … 75 89 case "$with_gui" in 76 90 windows) 91 GCH_LANG="c++-header" 77 92 ;; 78 93 cocoa) 94 GCH_LANG="objective-c++-header" 79 95 CXXFLAGS="$CXXFLAGS -x objective-c++" 80 96 LDFLAGS="$LDFLAGS -x none -framework Cocoa" … … 104 120 fi 105 121 122 GCH_LANG="objective-c++-header" 106 123 CXXFLAGS="$CXXFLAGS -x objective-c++" 107 124 LDFLAGS="$LDFLAGS -x none" … … 112 129 ;; 113 130 esac 131 AC_SUBST(GCH_LANG) 114 132 115 133 OS_DIR="os-$with_os" … … 176 194 # Checks for library functions. 177 195 178 #AC_CHECK_LIB([argtable2],[arg_parse], [], [echo "argtable2 not found"])179 180 196 # 181 197 # popt … … 183 199 184 200 AC_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"]) 192 204 193 205 # … … 203 215 # atomic operations 204 216 # 217 205 218 AC_MSG_CHECKING([for __sync_bool_compare_and_swap]) 206 219 prog="int data = 0; __sync_bool_compare_and_swap(&data, 0, 1);"
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)