Revision 32236

View differences:

tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/utilities.xml
1
<project name="ant_libs">
2
	<dirname file="${ant.file.ant_libs}" property="ant.file.ant_libs.dir"/>
3

  
4
	<!--
5
		====================================
6
		Compilation base properties
7
		====================================
8
	-->
9
	<property name="JUNIT_HOME" location="${ant.file.ant_libs.dir}" />
10
	<property name="JavaSourceVersion" value="1.5"/>
11
	<property name="JavaTargetVersion" value="1.5"/>
12
	<property name="debug" value="on"/>
13
	<property name="debuglevel" value="lines, vars, source"/>
14
	<property name="encoding" value="ISO_8859_1"/>
15
	<property name="workspaceDir" location="${ant.file.ant_libs.dir}/../.."/>
16
	<property name="workspace_loc" location="${workspaceDir}"/>
17
	<property name="binaries_loc" location="${workspace_loc}/binaries"/>
18
	<property name="dependencies_loc" location="${binaries_loc}/dependencies"/>
19
	<property name="lib_loc" location="${binaries_loc}/lib"/>
20
	<property name="unixOS" value="Linux,SunOS,Solaris,Mac OS X" />
21

  
22

  
23
	<!-- Macros to call the usual maven 2 goals from ant -->
24
	<macrodef name="mvn">
25
	   <attribute name="arg" />
26
	   <sequential>
27
			<exec executable="${workspaceDir}/build/maven/bin/mvn" failonerror="true" os="${unixOS}">
28
				<arg line="@{arg}"/>
29
			</exec>
30
			<exec executable="cmd" os="windows">
31
		    	<arg value="/c"/>
32
		    	<arg value="${workspaceDir}/build/maven/bin/mvn.bat"/>
33
		    	<arg value="@{arg}"/>
34
		    </exec>
35
	   </sequential>
36
	</macrodef>	
37
	
38
	<macrodef name="mvn-clean">
39
	   <sequential>
40
	   		<mvn arg="clean"/>
41
	   </sequential>
42
	</macrodef>
43
	
44
	<macrodef name="mvn-compile">
45
	   <sequential>
46
	   		<mvn arg="compile"/>
47
	   </sequential>
48
	</macrodef>
49

  
50
	<macrodef name="mvn-install">
51
	   <attribute name="tofile" />
52
	   <attribute name="mvnJarName"/>
53
	   <attribute name="disable-tests" default="false" />
54
	   <sequential>
55
	   		<mvn arg="install"/>
56
			<copy tofile="@{tofile}" file="target/@{mvnJarName}"/>
57
	   </sequential>
58
	</macrodef>
59

  
60
	<macrodef name="mvn-install-no-tests">
61
	   <attribute name="tofile" />
62
	   <attribute name="mvnJarName"/>
63
	   <attribute name="disable-tests" default="false" />
64
	   <sequential>
65
	   		<mvn arg="-Dmaven.test.skip=true install"/>
66
			<copy tofile="@{tofile}" file="target/@{mvnJarName}"/>
67
	   </sequential>
68
	</macrodef>
69
	
70
	<macrodef name="mvn-javadoc">
71
	   <sequential>
72
	   		<mvn arg="javadoc:javadoc"/>
73
	   </sequential>
74
	</macrodef>
75

  
76

  
77
	<!-- Macros to call the usual cmake goals from ant -->
78
	<property name="target" value="target/target_cmake"/>
79
	<property name="cmakeExe" value="cmake"/>
80
	<property name="buildman.executable" location="${workspaceDir}/build/buildman/bin/bmn.py" />
81

  
82
	<macrodef name="cmake">
83
		<attribute name="install-dependencies" default="OFF"/>
84
		<attribute name="cmake-build-type" default="Release"/>
85
		<attribute name="args" default=""/>
86
	   <sequential>
87
			<mkdir dir="${target}" />
88
			<!--delete file="${target}/CMakeCache.txt"/-->
89
	        <exec dir="${target}" executable="${cmakeExe}" failonerror="true" os="${unixOS}">
90
    	        <arg value="-GUnix Makefiles" />
91
        	    <arg value="-DCMAKE_BUILD_TYPE=@{cmake-build-type}" />
92
            	<arg value="-DINSTALL_DEPENDENCIES=@{install-dependencies}"/>
93
            	<arg line="@{args}"/>
94
	            <arg value="../../" />
95
    	    </exec>
96
	        <exec dir="${target}" executable="${cmakeExe}" failonerror="true" osfamily="windows">
97
    	        <arg value="-GNMake Makefiles" />
98
        	    <arg value="-DCMAKE_BUILD_TYPE=@{cmake-build-type}" />
99
            	<arg value="-DINSTALL_DEPENDENCIES=@{install-dependencies}"/>
100
            	<arg line="@{args}"/>
101
	            <arg value="..\\..\\" />
102
    	    </exec>
103
		</sequential>
104
	</macrodef>	
105

  
106
	<macrodef name="make-install">
107
		<attribute name="numProc" default="2"/>
108
	   <sequential>
109
			<exec dir="${target}" executable="make" failonerror="true" os="${unixOS}">
110
				<arg value="-j@{numProc}"/>
111
				<arg value="install"/>
112
			</exec>
113
			<exec dir="${target}" executable="nmake" failonerror="true" osfamily="windows">
114
				<arg value="install"/>
115
			</exec>
116
		</sequential>
117
	</macrodef>
118
	<macrodef name="buildman">
119
		<attribute name="goal"/>
120
		<attribute name="args" default=""/>
121
	   	<sequential>
122
			<exec executable="python" failonerror="true" >
123
				<arg value="${buildman.executable}" />
124
				<arg value="@{goal}" />
125
				<arg line="@{args}" />
126
			</exec>
127
		</sequential>
128
	</macrodef>
129
</project>
130

  
131

  
132

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/gvsig-library-base-pom.sed
1
N;s/\(gvsig-library-base-pom[^0-9]*<version>\)1\.0\-SNAPSHOT<\/version>/\11.9-SNAPSHOT<\/version>/g;P;D
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/osgvpversion.sed
1
N;s/\(libosgvp[^0-9]*<version>\)2.2.0<\/version>/\12.2.0-SNAPSHOT<\/version>/g;P;D
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/unpack-dependencies.sh
1
#!/bin/bash
2

  
3
dep_dir=$1;
4
dest_dir=$2;
5

  
6
if [ ! -d $dest_dir ]; then mkdir $dest_dir; fi;
7
if [ ! -d $dep_dir ]; then exit 0; fi 
8

  
9
files=$(find $dep_dir -name *.tar.gz)
10
for i in $files; do
11
	echo "Expanding $i in $dest_dir"
12
	tar xzf $i -C $dest_dir
13
done
14

  
0 15

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/version.sed
1
s/2.1-SNAPSHOT/1.9-alpha/g
2

  
0 3

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/gvsig-basepoms.sed
1
N;s/\(gvsig-basepoms[^0-9]*<version>\)1\.0\-SNAPSHOT<\/version>/\11.9-SNAPSHOT<\/version>/g;P;D
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/native-assembly.xml
1
<assembly>
2
	<id>${native-classifier}</id>
3
	<formats>
4
		<format>tar.gz</format>
5
	</formats>
6
	<baseDirectory></baseDirectory>
7
	<fileSets>
8
		<fileSet>
9
			<directory>${project.build.directory}/target_cmake_product</directory>
10
			<includes>
11
				<include>**/**</include>
12
			</includes>
13
			<outputDirectory>/</outputDirectory>
14
		</fileSet>
15
	</fileSets>
16
</assembly>
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/depman-ant.xml
1
<project name="Native Build System" default="native" basedir=".">
2

  
3
	<import file="utilities.xml" />
4

  
5
	<target name="generate">
6
		<cmake args="-DCMAKE_INSTALL_PREFIX=${project.build.directory}/target_cmake_product" />
7
	</target>
8

  
9
	<target name="build">
10
		<make-install numProc="${numProc}" />
11
	</target>
12

  
13
	<target name="native" depends="build" />
14

  
15
	<target name="native-eclipse" depends="generate" />
16

  
17
</project>
18

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/changeVersion.sh
1
#!/bin/bash
2

  
3
arg_path=$1;
4
sefile=$2
5
FILES="pom.xml"
6

  
7
if [ $# -ne 2 ] 
8
then 
9
	echo "usage: $0 [path] $2 [sedfile]"
10
else
11
	for i in $FILES; do
12
 		find $arg_path -name $i | grep -v ".svn" | xargs sed -i -f $2;
13
	done
14
fi
15

  
0 16

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/scripts/gvsig-extension-base-pom.sed
1
N;s/\(gvsig-extension-base-pom[^0-9]*<version>\)1\.0\-SNAPSHOT<\/version>/\11.9-SNAPSHOT<\/version>/g;N;P;D
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/CMakeModules/GeneralMacros.cmake
1
MACRO(CONFIGURE_DEFAULTS)
2
    # Looking for arch extension!
3
    SET(LIB_POSTFIX "32")
4
    IF(UNIX)
5
	    IF(NOT APPLE)
6
		    IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
7
      		    SET(LIB_POSTFIX "64")
8
  		    ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
9
	    ENDIF(NOT APPLE)
10
    ELSE(UNIX)
11
	    IF(CMAKE_SYSTEM_NAME MATCHES Windows)
12
		    IF(CMAKE_CL_64)
13
      		    SET(LIB_POSTFIX "64")
14
		    ENDIF(CMAKE_CL_64)	
15
	    ENDIF(CMAKE_SYSTEM_NAME MATCHES Windows)
16
    ENDIF(UNIX)
17
	# This is for an advanced option to give aggressive warnings
18
	# under different compilers. If yours is not implemented, this option
19
	# will not be made available.
20
	IF(CMAKE_COMPILER_IS_GNUCXX)
21
	    # To be complete, we might also do GNUCC flags,
22
	    # but everything here is C++ code.
23
	    # -Wshadow and -Woverloaded-virtual are also interesting flags, but OSG
24
	    # returns too many hits.
25
	    # FYI, if we do implement GNUCC, then -Wmissing-prototypes in another
26
	    # interesting C-specific flag.
27
	    # Also, there is a bug in gcc 4.0. Under C++, -pedantic will create
28
	    # errors instead of warnings for certain issues, including superfluous
29
	    # semicolons and commas, and the use of long long. -fpermissive seems
30
	    # to be the workaround.
31
	    SET(AGGRESSIVE_WARNING_FLAGS "-Wall -Wparentheses -Wformat=2 -Wno-long-long -Wno-import -pedantic -Wreturn-type -Wmissing-braces -Wunknown-pragmas -Wunused")
32
		IF(NOT APPLE)
33
			SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-fpermissive")
34
		ENDIF(NOT APPLE)
35
	ELSE(CMAKE_COMPILER_IS_GNUCXX)
36
	    IF(MSVC)
37
	        # FIXME: What are good aggressive warning flags for Visual Studio?
38
	        # And do we need to further subcase this for different versions of VS?
39
	        # CMake variables: MSVC60, MSVC70, MSVC71, MSVC80, CMAKE_COMPILER_2005
40
	        SET(AGGRESSIVE_WARNING_FLAGS "/Wall /W4")
41

  
42

  
43
	    ELSE(MSVC)
44
	        # CMake lacks an elseif, so other non-gcc, non-VS compilers need
45
	        # to be listed below. If unhandled, OSG_AGGRESSIVE_WARNING_FLAGS should
46
	        # remain unset.
47
	    ENDIF(MSVC)
48
	ENDIF(CMAKE_COMPILER_IS_GNUCXX)
49

  
50
	# This part is for the CMake menu option to toggle the warnings on/off.
51
	# This will only be made available if we set values for OSG_AGGRESSIVE_WARNING_FLAGS.
52
	IF(AGGRESSIVE_WARNING_FLAGS)
53
	    OPTION(USE_AGGRESSIVE_WARNINGS "Enable to activate aggressive warnings" OFF)
54
	    MARK_AS_ADVANCED(USE_AGGRESSIVE_WARNINGS)
55

  
56
	    IF(USE_AGGRESSIVE_WARNINGS)
57
	        IF(NOT "${OLD_CMAKE_CXX_FLAGS_WAS_SET}")
58
	            SET(OLD_CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" CACHE INTERNAL "Old CXX flags")
59
	            SET(OLD_CMAKE_CXX_FLAGS_WAS_SET 1 CACHE INTERNAL "Old CXX flags was set")
60
	            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${AGGRESSIVE_WARNING_FLAGS}" CACHE STRING "Flags used by the compiler during all build types." FORCE)
61
	        ENDIF(NOT "${OLD_CMAKE_CXX_FLAGS_WAS_SET}")
62
	    ELSE(USE_AGGRESSIVE_WARNINGS)
63
	        # FIXME: This will lose any changes made after OLD_CMAKE_CXX_FLAGS was
64
	        # set. The better way would be to parse the string and remove each
65
	        # option explicitly.
66
	        IF("${OLD_CMAKE_CXX_FLAGS_WAS_SET}")
67
	            SET(CMAKE_CXX_FLAGS "${OLD_CMAKE_CXX_FLAGS}" CACHE STRING "Flags used by the compiler during all build types." FORCE)
68
	            SET(OLD_CMAKE_CXX_FLAGS_WAS_SET 0 CACHE INTERNAL "Old CXX flags was set")
69
	        ENDIF("${OLD_CMAKE_CXX_FLAGS_WAS_SET}")
70
	    ENDIF(USE_AGGRESSIVE_WARNINGS)
71
	ENDIF(AGGRESSIVE_WARNING_FLAGS)
72

  
73
	# Set defaults for Universal Binaries. We want 32-bit Intel/PPC on 10.4
74
	# and 32/64-bit Intel/PPC on >= 10.5. Anything <= 10.3 doesn't support.
75
	IF(APPLE)
76
	    # These are just defaults/recommendations, but how we want to build
77
	    # out of the box. But the user needs to be able to change these options.
78
	    # So we must only set the values the first time CMake is run, or we
79
	    # will overwrite any changes the user sets.
80
	    # FORCE is used because the options are not reflected in the UI otherwise.
81
	    # Seems like a good place to add version specific compiler flags too.
82
	    IF(NOT CONFIG_HAS_BEEN_RUN_BEFORE)
83
	        # This is really fragile, but CMake doesn't provide the OS system
84
	        # version information we need. (Darwin versions can be changed
85
	        # independently of OS X versions.)
86
	        # It does look like CMake handles the CMAKE_OSX_SYSROOT automatically.
87
	        IF(EXISTS /Developer/SDKs/MacOSX10.5.sdk)
88
	            #SET(CMAKE_OSX_ARCHITECTURES "ppc;i386;ppc64;x86_64" CACHE STRING "Build architectures for OSX")
89
				SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX")
90
	            SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.5 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE)
91
	        ELSE(EXISTS /Developer/SDKs/MacOSX10.5.sdk)
92
	            IF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
93
	                SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE)
94
	                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.4 -ftree-vectorize -fvisibility-inlines-hidden" CACHE STRING "Flags used by the compiler during all build types." FORCE)
95
	            ELSE(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
96
	                # No Universal Binary support
97
	                # Should break down further to set the -mmacosx-version-min,
98
	                # but the SDK detection is too unreliable here.
99
	            ENDIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
100
	        ENDIF(EXISTS /Developer/SDKs/MacOSX10.5.sdk)
101
	    ENDIF(NOT CONFIG_HAS_BEEN_RUN_BEFORE)
102
    	SET(CMAKE_INSTALL_NAME_DIR @executable_path/../Frameworks CACHE STRING "Executable Path for MacOS X" FORCE)
103
	    MARK_AS_ADVANCED(CMAKE_INSTALL_NAME_DIR)
104
	ENDIF(APPLE)
105
	
106
	SET(OUTPUT_BINDIR ${CMAKE_BINARY_DIR}/bin)
107
	MAKE_DIRECTORY(${OUTPUT_BINDIR})
108

  
109
	SET(OUTPUT_LIBDIR ${CMAKE_BINARY_DIR}/lib)
110
	MAKE_DIRECTORY(${OUTPUT_LIBDIR})
111
	IF(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION GREATER 4)
112
	    # If CMake >= 2.6.0
113
	    SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_LIBDIR})
114
	    SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_BINDIR})
115
	    IF(WIN32)
116
	        SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_BINDIR})
117
	    ELSE(WIN32)
118
	        SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_LIBDIR})
119
	    ENDIF(WIN32)
120
	ELSE(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION GREATER 4)
121
	    SET(EXECUTABLE_OUTPUT_PATH ${OUTPUT_BINDIR})
122
	    SET(LIBRARY_OUTPUT_PATH ${OUTPUT_LIBDIR})
123
	ENDIF(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION GREATER 4)
124
	
125
ENDMACRO(CONFIGURE_DEFAULTS)
126

  
127
MACRO(CONFIGURE_END)
128
	# This needs to be run very last so other parts of the scripts can take
129
	# advantage of this.
130
	IF(NOT CONFIG_HAS_BEEN_RUN_BEFORE)
131
	    SET(CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before")
132
	ENDIF(NOT CONFIG_HAS_BEEN_RUN_BEFORE)
133
ENDMACRO(CONFIGURE_END)
134

  
135
MACRO(SETUP_CORELIB CORELIB_NAME)
136
	IF(COMPILE_STATIC)
137
		ADD_LIBRARY(${CORELIB_NAME}
138
			STATIC
139
			${HEADERS}
140
			${SOURCES}
141
		)
142
	ELSE(COMPILE_STATIC)
143
		ADD_LIBRARY(${CORELIB_NAME}
144
			SHARED
145
			${HEADERS}
146
			${SOURCES}
147
		)
148
	ENDIF(COMPILE_STATIC)
149

  
150
	TARGET_LINK_LIBRARIES(${CORELIB_NAME} ${LIBRARIES})
151

  
152
	IF(LIBRARIES_OPTIMIZED)
153
		FOREACH(LIBOPT ${LIBRARIES_OPTIMIZED})
154
			TARGET_LINK_LIBRARIES(${CORELIB_NAME} optimized ${LIBOPT})
155
		ENDFOREACH(LIBOPT)
156
	ENDIF(LIBRARIES_OPTIMIZED)
157

  
158
	IF(LIBRARIES_DEBUG)
159
		FOREACH(LIBDEBUG ${LIBRARIES_DEBUG})
160
			TARGET_LINK_LIBRARIES(${CORELIB_NAME} debug ${LIBDEBUG})
161
		ENDFOREACH(LIBDEBUG)
162
	ENDIF(LIBRARIES_DEBUG)
163

  
164
	SET_TARGET_PROPERTIES(${CORELIB_NAME}
165
		PROPERTIES
166
		PROJECT_LABEL "Core ${CORELIB_NAME}"
167
	)
168
	IF(WIN32)
169
		INSTALL(TARGETS ${CORELIB_NAME}
170
			RUNTIME DESTINATION bin
171
			ARCHIVE DESTINATION lib
172
		)
173
	ELSE(WIN32)
174
		INSTALL(TARGETS ${CORELIB_NAME}
175
			LIBRARY DESTINATION lib
176
			ARCHIVE DESTINATION lib
177
		)
178
	ENDIF(WIN32)
179
	
180
	IF(UNIX AND NOT APPLE)
181
		SET_TARGET_PROPERTIES ( ${CORELIB_NAME} PROPERTIES LINK_FLAGS "-Wl,-E")
182
	ENDIF(UNIX AND NOT APPLE)
183

  
184
	IF(VERSION)
185
		#SET_TARGET_PROPERTIES(${CORELIB_NAME} PROPERTIES VERSION "${VERSION}")
186
		SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES OUTPUT_NAME "${CORELIB_NAME}${VERSION}")
187
	ENDIF(VERSION)
188

  
189
ENDMACRO(SETUP_CORELIB)
190

  
191
MACRO(SETUP_JNILIB JNILIB_NAME)
192

  
193
	ADD_LIBRARY(${JNILIB_NAME}
194
		SHARED
195
		${HEADERS}
196
		${SOURCES}
197
	)
198

  
199
	TARGET_LINK_LIBRARIES(${JNILIB_NAME} ${LIBRARIES})
200

  
201
	IF(LIBRARIES_OPTIMIZED)
202
		FOREACH(LIBOPT ${LIBRARIES_OPTIMIZED})
203
			TARGET_LINK_LIBRARIES(${JNILIB_NAME} optimized ${LIBOPT})
204
		ENDFOREACH(LIBOPT)
205
	ENDIF(LIBRARIES_OPTIMIZED)
206

  
207
	IF(LIBRARIES_DEBUG)
208
		FOREACH(LIBDEBUG ${LIBRARIES_DEBUG})
209
			TARGET_LINK_LIBRARIES(${JNILIB_NAME} debug ${LIBDEBUG})
210
		ENDFOREACH(LIBDEBUG)
211
	ENDIF(LIBRARIES_DEBUG)
212
	
213
	IF(APPLE)
214
		SET_TARGET_PROPERTIES(${JNILIB_NAME}
215
    	PROPERTIES
216
    	SUFFIX .jnilib)
217
	ENDIF(APPLE)
218
	
219

  
220
	SET_TARGET_PROPERTIES(${JNILIB_NAME}
221
		PROPERTIES
222
		PROJECT_LABEL "JNI ${JNILIB_NAME}"
223
	)
224

  
225
	IF(WIN32)
226
		INSTALL(TARGETS ${JNILIB_NAME}
227
			RUNTIME DESTINATION bin
228
			ARCHIVE DESTINATION lib
229
		)
230
	ELSE(WIN32)
231
		INSTALL(TARGETS ${JNILIB_NAME}
232
			LIBRARY DESTINATION lib
233
		)
234
	ENDIF(WIN32)
235
	
236
	IF(UNIX AND NOT APPLE)
237
		SET_TARGET_PROPERTIES (${JNILIB_NAME} PROPERTIES LINK_FLAGS "-Wl,-E")
238
	ENDIF(UNIX AND NOT APPLE)
239
	
240
	IF(VERSION)
241
		#SET_TARGET_PROPERTIES(${CORELIB_NAME} PROPERTIES VERSION "${VERSION}")
242
		SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES OUTPUT_NAME "${JNILIB_NAME}${VERSION}")
243
	ENDIF(VERSION)
244
	
245
ENDMACRO(SETUP_JNILIB)
246

  
247
MACRO(SETUP_EXECUTABLE EXECUTABLE_NAME)
248

  
249
	IF(IS_APPLICATION)
250
		IF(APPLE)
251
		    # SET(MACOSX_BUNDLE_LONG_VERSION_STRING "${CRSFX_MAJOR_VERSION}.${CRSFX_MINOR_VERSION}.${CRSFXCRSFX_PATCH_VERSION}")
252
		    # Short Version is the "marketing version". It is the version
253
		    # the user sees in an information panel.
254
		    SET(MACOSX_BUNDLE_SHORT_VERSION_STRING "${VERSION}")
255
		    # Bundle version is the version the OS looks at.
256
		    SET(MACOSX_BUNDLE_BUNDLE_VERSION "${VERSION}")
257
		    SET(MACOSX_BUNDLE_GUI_IDENTIFIER "${EXECUTABLE_NAME}" )
258
		    SET(MACOSX_BUNDLE_BUNDLE_NAME "${EXECUTABLE_NAME}" )
259
		    # SET(MACOSX_BUNDLE_ICON_FILE "myicon.icns")
260
		    # SET(MACOSX_BUNDLE_COPYRIGHT "")
261
		    # SET(MACOSX_BUNDLE_INFO_STRING "Info string, localized?")
262
			SET(PLATFORM_SPECIFIC_CONTROL MACOSX_BUNDLE)
263
		ENDIF(APPLE)
264

  
265
		IF(WIN32)
266
		    IF (REQUIRE_WINMAIN_FLAG)
267
		        SET(PLATFORM_SPECIFIC_CONTROL WIN32)
268
		    ENDIF(REQUIRE_WINMAIN_FLAG)
269
		ENDIF(WIN32)
270
	
271
		ADD_EXECUTABLE(${EXECUTABLE_NAME} ${PLATFORM_SPECIFIC_CONTROL} ${SOURCES} ${HEADERS})
272
		IF(APPLE AND INSTALL_DEPENDENCIES)
273
		    SETUP_BUNDLE_DEPENDENCIES(${EXECUTABLE_NAME})
274
		ENDIF(APPLE AND INSTALL_DEPENDENCIES)
275
	ELSE(IS_APPLICATION)
276
		ADD_EXECUTABLE(${EXECTUABLE_NAME} ${SOURCES} ${HEADERS})
277
	ENDIF(IS_APPLICATION)
278

  
279
	TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} ${LIBRARIES})
280
	IF(LIBRARIES_OPTIMIZED)
281
		FOREACH(LIBOPT ${LIBRARIES_OPTIMIZED})
282
			TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} optimized ${LIBOPT})
283
		ENDFOREACH(LIBOPT)
284
	ENDIF(LIBRARIES_OPTIMIZED)
285

  
286
	IF(LIBRARIES_DEBUG)
287
		FOREACH(LIBDEBUG ${LIBRARIES_DEBUG})
288
			TARGET_LINK_LIBRARIES(${EXECUTABLE_NAME} debug ${LIBDEBUG})
289
		ENDFOREACH(LIBDEBUG)
290
	ENDIF(LIBRARIES_DEBUG)
291

  
292
	SET_TARGET_PROPERTIES(${EXECUTABLE_NAME} PROPERTIES PROJECT_LABEL "Application ${EXECUTABLE_NAME}")
293
	
294
	IF(APPLE)
295
		INSTALL(TARGETS ${EXECUTABLE_NAME}
296
			RUNTIME DESTINATION bin
297
			BUNDLE DESTINATION bin
298
		)
299
	ELSE(APPLE)
300
		INSTALL(TARGETS ${EXECUTABLE_NAME}
301
			RUNTIME DESTINATION bin
302
			COMPONENT DESTINATION bin
303
		)
304
	ENDIF(APPLE)
305

  
306
ENDMACRO(SETUP_EXECUTABLE)
307

  
308

  
309
MACRO(SETUP_BUNDLE_DEPENDENCIES TARGET_NAME)
310
	IF(DEPENDENCY_FILES)
311
		IF(APPLE AND IS_APPLICATION)
312
			INSTALL(PROGRAMS ${DEPENDENCY_FILES}
313
				DESTINATION bin/${TARGET_NAME}.app/Contents/MacOS
314
			)
315
		ENDIF(APPLE AND IS_APPLICATION)
316
	ENDIF(DEPENDENCY_FILES)
317
	
318
	IF(DEPENDENCY_DIRS)
319
		IF(APPLE AND IS_APPLICATION)
320
			INSTALL(DIRECTORY ${DEPENDENCY_DIRS}		
321
					DESTINATION bin/${TARGET_NAME}.app/Contents/Resources
322
					PATTERN ".svn" EXCLUDE)
323
		ENDIF(APPLE AND IS_APPLICATION)
324
	ENDIF(DEPENDENCY_DIRS)
325

  
326
	IF(RESOURCE_FILES)
327
		IF(APPLE AND IS_APPLICATION)
328
			INSTALL(FILES ${RESOURCE_FILES}
329
		        	DESTINATION bin/${TARGET_NAME}.app/Contents/Resources
330
			)
331
		ENDIF(APPLE AND IS_APPLICATION)
332
	ENDIF(RESOURCE_FILES)
333

  
334
	IF(RESOURCE_DIRS)
335
		IF(APPLE AND IS_APPLICATION)
336
			INSTALL(DIRECTORY ${RESOURCE_DIRS}		
337
					DESTINATION bin/${TARGET_NAME}.app/Contents/Resources
338
					PATTERN ".svn" EXCLUDE
339
					)
340
		ENDIF(APPLE AND IS_APPLICATION)
341
	ENDIF(RESOURCE_DIRS)
342
	
343
ENDMACRO(SETUP_BUNDLE_DEPENDENCIES TARGET_NAME)
344

  
345
MACRO(SETUP_DEPENDENCIES)
346
	IF(DEPENDENCY_FILES)
347
		IF(WIN32)
348
			INSTALL(PROGRAMS ${DEPENDENCY_FILES}
349
				DESTINATION bin
350
			)
351
		ELSE(WIN32)
352
		    INSTALL(PROGRAMS ${DEPENDENCY_FILES}
353
			    DESTINATION lib
354
			)
355
		ENDIF(WIN32)
356
	ENDIF(DEPENDENCY_FILES)
357
	
358
	IF(DEPENDENCY_DIRS)
359
        IF(WIN32)
360
    	    INSTALL(DIRECTORY ${DEPENDENCY_DIRS}		
361
    				DESTINATION bin
362
    				PATTERN ".svn" EXCLUDE
363
    				PATTERN ".cache" EXCLUDE)
364
    	ELSE(WIN32)
365
    	    INSTALL(DIRECTORY ${DEPENDENCY_DIRS}		
366
    				DESTINATION lib
367
    				PATTERN ".svn" EXCLUDE
368
    				PATTERN ".cache" EXCLUDE)		
369
		ENDIF(WIN32)
370
	ENDIF(DEPENDENCY_DIRS)
371

  
372
	IF(RESOURCE_FILES)
373
		INSTALL(FILES ${RESOURCE_FILES}
374
		       	DESTINATION share/${CMAKE_PROJECT_NAME}/resources
375
		)
376
	ENDIF(RESOURCE_FILES)
377

  
378
	IF(RESOURCE_DIRS)
379
		INSTALL(DIRECTORY ${RESOURCE_DIRS}		
380
				DESTINATION share/${CMAKE_PROJECT_NAME}/resources
381
				PATTERN ".svn" EXCLUDE
382
		)
383
	ENDIF(RESOURCE_DIRS)
384
	
385
	IF(SCRIPT_FILES)
386
		INSTALL(PROGRAMS ${SCRIPT_FILES}
387
				DESTINATION .
388
				PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
389
		)
390
	ENDIF(SCRIPT_FILES)
391
ENDMACRO(SETUP_DEPENDENCIES)
392

  
393

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/CMakeModules/FindDepMan.cmake
1
FIND_PATH(DEPMAN_PATH NAMES .cache Frameworks bin include lib share
2
	PATHS
3
	$ENV{DEPMAN_REPO}
4
	$ENV{DEPMAN_PATH}
5
	~/.depman
6
	/Developer/DepMan
7
	/DepMan
8
	$ENV{USERPROFILE}/.depman
9
    NO_DEFAULT_PATH
10
)
11

  
12
SET(DEPMAN_FOUND "NO")
13
IF(DEPMAN_PATH)
14
  SET(DEPMAN_FOUND "YES")
15
  SET(CMAKE_INCLUDE_PATH ${DEPMAN_PATH}/include ${DEPMAN_PATH}/Frameworks ${CMAKE_INCLUDE_PATH})
16
  SET(CMAKE_LIBRARY_PATH ${DEPMAN_PATH}/lib ${DEPMAN_PATH}/Frameworks ${CMAKE_LIBRARY_PATH})
17
ENDIF(DEPMAN_PATH)
18

  
19
MARK_AS_ADVANCED(DEPMAN_PATH)
20

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-example-projects/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<groupId>org.gvsig</groupId>
7
	<artifactId>gvsig-plugin-NAME</artifactId>
8
	<packaging>pom</packaging>
9
	<version>1.0-SNAPSHOT</version>
10
	<name>gvsig-plugin-NAME</name>
11
	<description>
12
		GvSIG plugin NAME. This pom builds all the NAME extension plugin for
13
		GvSIG
14
	</description>
15
	<inceptionYear>2008</inceptionYear>
16
	
17
	<developers>
18
		<developer>
19
			<name>Developer 1</name>
20
			<id>id-developer1</id>
21
			<email>id-developer1@dot.com</email>
22
			<roles>
23
				<role>Project Lead</role>
24
			</roles>
25
			<organization>ORGANIZATION</organization>
26
		</developer>
27
		<developer>
28
			<name>Developer2</name>
29
			<id>id-developer2</id>
30
			<email>id-developer2@dot.com</email>
31
			<roles>
32
				<role>Developer</role>
33
			</roles>
34
			<organization>ORGANIZATION</organization>
35
		</developer>
36
	</developers>
37

  
38
	<modules>
39
		<module>PATH TO THE INVOLVED PROJECTS ../../libMylibrary</module>
40
		<module>PATH TO THE INVOLVED PROJECTS ../../libMyExtension</module>
41
	</modules>
42
</project>
43

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-example-projects/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
</project>
12

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/eclipse.sh
1
mvn eclipse:eclipse -Dmaven.test.skip -DnumProc=5 -Dinstall-extension $@ 
0 2

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/svnbranch.sh
1
PROJECTS="libraries/libCacheService
2
libraries/lib3DMap-share
3
libraries/libGeometries3D
4
libraries/libGPE-OSG
5
libraries/lib3DMap
6
extensions/ext3Dgui"
7

  
8
if [ $# -ne 2 ]
9
then
10
  echo "Usage: `basename $0` {branch name} {branch message}"
11
  exit 65
12
fi
13

  
14
svn mkdir https://gvsig.org/svn/gvSIG/branches/$1 -m "$2"
15
svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/libraries -m "$2"
16
svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/extensions -m "$2"
17

  
18
svn copy https://gvsig.org/svn/gvSIG/trunk/build https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
19
svn copy https://gvsig.org/svn/gvSIG/trunk/binaries https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
20

  
21
for i in $PROJECTS; do
22
	project=$(echo $i | awk -F/ '{ print $2; }')
23
	svn copy https://gvsig.org/svn/gvSIG/trunk/$i https://gvsig.org/svn/gvSIG/branches/$1/$i -m "$2"
24
done
25

  
26

  
0 27

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10
</project>
11

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/compile.sh
1
mvn install -Dmaven.test.skip -DnumProc=5 -Dinstall-extension $@
0 2

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/svnco.sh
1
#!/bin/bash
2

  
3
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
4
URL=https://gvsig.org/svn/gvSIG/branches/gvSIG_19_ext3D_osgVP_2_2_0
5

  
6
for i in $PROJECTS; do
7
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
8
	echo $project
9
	svn co $URL/$project $i
10
done
11

  
12

  
0 13

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
3
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>gvsig-plugin-3D</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.0-SNAPSHOT</version>
9
	<name>gvsig-plugin-3d</name>
10
	<description> GvSIG plugin 3D. This pom mades all the 3D extension
11
		plugin for GvSIG</description>
12
	<inceptionYear>2007</inceptionYear>
13
	<developers>
14
		<developer>
15
			<name>Rafael Gaitán</name>
16
			<id>rgaitan</id>
17
			<email>rgaitan@ai2.upv.es</email>
18
			<roles>
19
				<role>Project Lead</role>
20
			</roles>
21
			<organization>AI2</organization>
22
		</developer>
23
		<developer>
24
			<name>Maria Ten</name>
25
			<id>mten</id>
26
			<email>mten@ai2.upv.es</email>
27
			<roles>
28
				<role>Developer</role>
29
			</roles>
30
			<organization>AI2</organization>
31
		</developer>
32
		<developer>
33
			<name>Jordi Torres</name>
34
			<id>jtorres</id>
35
			<email>jtorres@ai2.upv.es</email>
36
			<roles>
37
				<role>Developer</role>
38
			</roles>
39
			<organization>AI2</organization>
40
		</developer>
41
		<developer>
42
			<name>Jesus Zarzoso</name>
43
			<id>jzarzoso</id>
44
			<email>jzarzoso@ai2.upv.es</email>
45
			<roles>
46
				<role>Developer</role>
47
			</roles>
48
			<organization>AI2</organization>
49
		</developer>
50
		<developer>
51
			<name>Javier Lluch</name>
52
			<id>jlluch</id>
53
			<email>jlluch@dsic.upv.es</email>
54
			<roles>
55
				<role>Manager</role>
56
			</roles>
57
			<organization>AI2</organization>
58
		</developer>
59
		<developer>
60
			<name>Salvador Bayarri</name>
61
			<id>sbayarri</id>
62
			<email>salvador.bayarri@iver.es</email>
63
			<roles>
64
				<role>Manager</role>
65
			</roles>
66
			<organization>IVER</organization>
67
		</developer>
68
		<developer>
69
			<name>Julio Campos</name>
70
			<id>jcampos</id>
71
			<email>julio.campos@iver.es</email>
72
			<roles>
73
				<role>Project Lead</role>
74
			</roles>
75
			<organization>IVER</organization>
76
		</developer>
77
		<developer>
78
			<name>Angel Fraile</name>
79
			<id>afraile</id>
80
			<email>angel.fraile@iver.es</email>
81
			<roles>
82
				<role>Developer</role>
83
			</roles>
84
			<organization>IVER</organization>
85
		</developer>
86
	</developers>
87
	<dependencies>
88
		<dependency>
89
			<groupId>junit</groupId>
90
			<artifactId>junit</artifactId>
91
			<version>3.8.1</version>
92
			<scope>test</scope>
93
		</dependency>
94
		<dependency>
95
			<groupId>log4j</groupId>
96
			<artifactId>log4j</artifactId>
97
			<version>1.2.13</version>
98
		</dependency>
99
	</dependencies>
100
	
101
	<distributionManagement>
102
		<repository>
103
			<id>gvsig-ftp-repository</id>
104
			<name>gvSIG maven FTP repository</name>
105
			<url>ftp://downloads.gvsig.org:20001/user/maven
106
			</url>
107
		</repository>
108
		<snapshotRepository>
109
			<id>gvsig-ftp-repository</id>
110
			<name>gvSIG maven FTP repository</name>
111
			<url>ftp://downloads.gvsig.org:20001/user/maven
112
			</url>
113
		</snapshotRepository>
114
	</distributionManagement>
115
	<modules>
116
		<module>../../../libCacheService</module>
117
		<module>../../../extDockingSkin</module>
118
		<module>../../../lib3DMap-share</module>
119
		<module>../../../libGeometries3D</module>
120
		<module>../../../libGPE-OSG</module>
121
		<module>../../../lib3DMap</module>
122
		<module>../../../ext3Dgui</module>
123
		<!--
124
		<module>../../../libjni-gdal</module>
125
		<module>../../../libjni-ecw</module>
126
		<module>../../../libjni-mrsid</module>
127
		<module>../../../libjni-potrace</module>
128
		<module>../../../libjni-proj4</module>
129
		-->
130
	</modules>
131
	<profiles>
132
        <profile>
133
            <id>build-all</id>
134
			<modules>
135
				<module>../gvsig-plugin-animation</module>
136
				<module>../../../osgvp</module>
137
			</modules>
138
  		</profile>
139
	</profiles>
140
</project>
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-3D/svntag.sh
1
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
2
URL=https://gvsig.org/svn/gvSIG/branches/gvSIG_19_ext3D_osgVP_2_2_0
3
URL_TAGS=https://gvsig.org/svn/gvSIG/tags
4

  
5
if [ $# -ne 2 ]
6
then
7
  echo "Usage: `basename $0` {tag name} {tag message}"
8
  echo "Example: `basename $0` gvSIG_3D_Animation_1_9_SNAPSHOT_build_X \"Tag for gvsig 3D and animation extensions version 1.9 SNAPSHOT build X\""
9
  exit 65
10
fi
11

  
12
svn mkdir $URL_TAGS/$1 -m "$2"
13
svn mkdir $URL_TAGS/$1/libraries -m "$2"
14
svn mkdir $URL_TAGS/$1/extensions -m "$2"
15

  
16
svn copy $URL/build $URL_TAGS/$1/ -m "$2"
17
svn copy $URL/binaries $URL_TAGS/$1/ -m "$2"
18

  
19
for i in $PROJECTS; do
20
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
21
	echo $project
22
	svn copy $URL/$project $URL_TAGS/$1/$project -m "$2"
23
done
24

  
25

  
0 26

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-base/svnjnico.sh
1
PROJECTS="libraries/libjni-gdal
2
libraries/libjni-ecw
3
libraries/libjni-mrsid
4
libraries/libjni-potrace
5
libraries/libjni-proj4
6
"
7

  
8
for i in $PROJECTS; do
9
	project=$(echo $i | awk -F/ '{ print $2; }')
10
	svn co https://gvsig.org/svn/gvSIG/trunk/$i ../../../$project
11
done
12

  
13

  
0 14

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-base/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
3
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>gvsig-plugin</artifactId>
7
	<packaging>pom</packaging>
8
	<version>1.9-SNAPSHOT</version>
9
	<name>gvsig-plugin</name>
10
	<description> GvSIG plugin. This pom mades all the base plugin needed
11
		to run GvSIG</description>
12
	<inceptionYear>2007</inceptionYear>
13
	<developers>
14
		<developer>
15
			<name>nombre</name>
16
			<id>id</id>
17
			<email>mail@mail.com</email>
18
			<roles>
19
				<role>Developer</role>
20
			</roles>
21
			<organization>CIT</organization>
22
		</developer>
23
	</developers>
24
	<dependencies>
25
		<dependency>
26
			<groupId>junit</groupId>
27
			<artifactId>junit</artifactId>
28
			<version>3.8.1</version>
29
			<scope>test</scope>
30
		</dependency>
31
		<dependency>
32
			<groupId>log4j</groupId>
33
			<artifactId>log4j</artifactId>
34
			<version>1.2.13</version>
35
		</dependency>
36
	</dependencies>
37
	
38
	<distributionManagement>
39
		<repository>
40
			<id>gvsig-ftp-repository</id>
41
			<name>gvSIG maven FTP repository</name>
42
			<url>ftp://downloads.gvsig.org:20001/user/maven
43
			</url>
44
		</repository>
45
		<snapshotRepository>
46
			<id>gvsig-ftp-repository</id>
47
			<name>gvSIG maven FTP repository</name>
48
			<url>ftp://downloads.gvsig.org:20001/user/maven
49
			</url>
50
		</snapshotRepository>
51
	</distributionManagement>
52
    <properties>
53
        <build-dir>${basedir}/../build</build-dir>
54
    </properties>
55
	<modules>
56
		<module>../../../libInternationalization</module>
57
		<module>../../../libExceptions</module>
58
		<module>../../../libIverUtiles</module>
59
		<module>../../../libUIComponent</module>
60
		<module>../../../_fwAndami</module>
61
		<module>../../../libCorePlugin</module>
62
		<module>../../../libProjection</module>
63
		<module>../../../libRaster</module>
64
		<module>../../../libDriverManager</module>
65
		<module>../../../libRemoteServices</module>
66
		<module>../../../libDXF</module>
67
		<module>../../../libGPE</module>
68
		<module>../../../libGPE-XML</module>
69
		<module>../../../libGPE-GML</module>
70
		<module>../../../libGPE-KML</module>
71
<!--		<module>../../../libDwg</module>-->
72
		<module>../../../libJCRS</module>
73
		<module>../../../extJCRS</module>
74
		<module>../../../libGeoUtils</module>
75
		<module>../../../libFMap</module>
76
		<!--module>../../../openjdk-printing1.7</module-->
77
		<module>../../../appgvSIG</module>
78
		<module>../../../extRasterTools-SE</module>
79
<!--		<module>../../../extDwg</module>-->
80
<!--		<module>../../../extRemoteSensing</module>-->
81
		<module>../../../extIconThemeBase</module>
82
		<module>../../../extWMS</module>
83
		<module>../../../extWCS</module>
84
		<module>../../../extWFS2</module>
85
		<module>../../../extJDBC</module>
86
		<module>../../../extScripting</module>
87
		<module>../../../extCAD</module>
88
		<module>../../../extGPE-gvSIG</module>
89
	</modules>
90
</project>
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-base/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4
	<property name="dst-distri" location="../../../_fwAndami"/>
5
	
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
	<target name="work" description="prepares system to begin working with eclipse" depends="install-gvsig-base" />
12
	<target name="eclipse" depends="mvn-clean,mvn-eclipse-clean,mvn-eclipse-eclipse" />
13

  
14
	<target name="install-gvsig-base" depends="mvn-clean,mvn-install-extensions"/>
15

  
16

  
17
	<target name="mvn-install-extensions">
18
		<maven>
19
			<arg value="install" />
20
			<arg value="-Dmaven.test.skip=true" />
21
			<arg value="-Dinstall-extension" />
22
		</maven>
23
		<mkdir dir="${dst-distri}/gvSIG"/>
24
		<copy todir="${dst-distri}/gvSIG">
25
			<fileset dir="../../product/gvSIG/" includes="**"/>
26
		</copy>
27
		<copy todir="${dst-distri}">
28
			<fileset dir="../../product/" includes="*.jar"/>
29
		</copy>
30
	</target>
31

  
32
	<target name="mvn-install">
33
		<maven>
34
			<arg value="install" />
35
		</maven>
36
	</target>
37

  
38
	<target name="mvn-eclipse-clean">
39
		<maven>
40
			<arg value="eclipse:clean" />
41
		</maven>
42
	</target>
43

  
44

  
45
	<target name="mvn-eclipse-eclipse">
46
		<maven>
47
			<arg value="eclipse:eclipse" />
48
		</maven>
49
	</target>
50

  
51
</project>
52

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-base/svnco.sh
1
#!/bin/bash
2

  
3
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
4
URL=https://gvsig.org/svn/gvSIG/trunk
5

  
6
for i in $PROJECTS; do
7
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
8
	echo $project
9
	svn co $URL/$project $i
10
done
11

  
12

  
0 13

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<groupId>org.gvsig</groupId>
7
	<artifactId>gvsig-plugin-animation</artifactId>
8
	<packaging>pom</packaging>
9
	<version>1.0-SNAPSHOT</version>
10
	<name>gvsig-plugin-animation</name>
11
	<description>
12
		GvSIG plugin animation. This pom mades all the animation
13
		extension plugin for GvSIG
14
	</description>
15
	<distributionManagement>
16
		<repository>
17
			<id>gvsig-ftp-repository</id>
18
			<name>gvSIG maven FTP repository</name>
19
			<url>ftp://downloads.gvsig.org:20001/user/maven
20
			</url>
21
		</repository>
22
		<snapshotRepository>
23
			<id>gvsig-ftp-repository</id>
24
			<name>gvSIG maven FTP repository</name>
25
			<url>ftp://downloads.gvsig.org:20001/user/maven
26
			</url>
27
		</snapshotRepository>
28
	</distributionManagement>
29

  
30
	<modules>
31
		<module>../../../libAnimation</module>
32
		<module>../../../libAnimationCommon</module>
33
		<module>../../../libAnimation2D</module>
34
		<module>../../../libAnimation3D</module>
35
		<module>../../../extAnimation2D</module>
36
		<module>../../../extAnimation3D</module>
37
		<module>../../../extAnimationCommon</module>
38
		<module>../../../extAnimationGUI</module>
39
	</modules>
40
</project>
41

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/svntag.sh
1
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
2
URL=https://gvsig.org/svn/gvSIG/branches/gvSIG_19_ext3D_osgVP_2_2_0
3
URL_TAGS=https://gvsig.org/svn/gvSIG/tags
4

  
5
if [ $# -ne 2 ]
6
then
7
  echo "Usage: `basename $0` {tag name} {tag message}"
8
  echo "Example: `basename $0` gvSIG_3D_Animation_1_0_SNAPSHOT_build_9 \"Tag for gvsig 3D and animation extensions version 1.0 SNAPSHOT build 9\""
9
  exit 65
10
fi
11

  
12
#svn mkdir $URL_TAGS/$1 -m "$2"
13
#svn mkdir $URL_TAGS/$1/libraries -m "$2"
14
#svn mkdir $URL_TAGS/$1/extensions -m "$2"
15

  
16
#svn copy $URL/build $URL_TAGS/$1/ -m "$2"
17
#svn copy $URL/binaries $URL_TAGS/$1/ -m "$2"
18

  
19
for i in $PROJECTS; do
20
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
21
	echo $project
22
	svn copy $URL/$project $URL_TAGS/$1/$project -m "$2"
23
done
24

  
25

  
0 26

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/eclipse.sh
1
mvn eclipse:eclipse -Dmaven.test.skip -DnumProc=5 -Dinstall-extension $@ 
0 2

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/svnbranch.sh
1
PROJECTS="libraries/libAnimation
2
libraries/libAnimationCommon
3
libraries/libAnimation2D
4
libraries/libAnimation3D
5
extensions/extAnimation2D
6
extensions/extAnimation3D
7
extensions/extAnimationCommon
8
extensions/extAnimationGUI"
9

  
10

  
11
if [ $# -ne 2 ]
12
then
13
  echo "Usage: `basename $0` {branch name} {branch message}"
14
  exit 65
15
fi
16

  
17
#svn mkdir https://gvsig.org/svn/gvSIG/branches/$1 -m "$2"
18
#svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/libraries -m "$2"
19
#svn mkdir https://gvsig.org/svn/gvSIG/branches/$1/extensions -m "$2"
20

  
21
#svn copy https://gvsig.org/svn/gvSIG/trunk/build https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
22
#svn copy https://gvsig.org/svn/gvSIG/trunk/binaries https://gvsig.org/svn/gvSIG/branches/$1/ -m "$2"
23

  
24
for i in $PROJECTS; do
25
	project=$(echo $i | awk -F/ '{ print $2; }')
26
	svn copy https://gvsig.org/svn/gvSIG/trunk/$i https://gvsig.org/svn/gvSIG/branches/$1/$i -m "$2"
27
done
28

  
29

  
0 30

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10
	
11
</project>
12

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/compile.sh
1
mvn install -Dmaven.test.skip -DnumProc=5 -Dinstall-extension $@
0 2

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-animation/svnco.sh
1
#!/bin/bash
2

  
3
PROJECTS=$(grep "\<module\>" pom.xml | awk -F"\<module\>" '{print $2}' | awk -F"\<\/module\>" '{print $1}')
4
URL=https://gvsig.org/svn/gvSIG/branches/gvSIG_19_ext3D_osgVP_2_2_0
5

  
6
for i in $PROJECTS; do
7
	project=$(echo $i | sed 's/.*\/ext/extensions\/ext/g' |  sed 's/.*\/lib/libraries\/lib/g' | sed 's/.*\/_fw/frameworks\/_fw/g' | sed 's/.*\/app/applications\/app/g';)
8
	echo $project
9
	svn co $URL/$project $i
10
done
11

  
12

  
0 13

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-raster/build.xml
1
<project name="gvSIG 3D Plugin Build System" default="work" basedir=".">
2

  
3
	<import file="../../build.xml" />
4

  
5
	<target name="work" description="prepares system to begin working with eclipse" depends="prepare-eclipse-workspace" />
6
	<!--
7
	TODO: This target should call mvn install phase in a temporary dir, and afterwards call izPack to do the distribution of this plugin.
8
	target name="distribution" description="creates the final distribution of the plugin" depends="mvn-install,build-installer" /
9
	-->
10

  
11
</project>
12

  
tags/gvSIG_3D_Animation_1_9_SNAPSHOT_build_13/build/projects/gvsig-plugin-raster/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
                      http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
	<modelVersion>4.0.0</modelVersion>
6
	<groupId>org.gvsig</groupId>
7
	<artifactId>gvsig-plugin-raster</artifactId>
8
	<packaging>pom</packaging>
9
	<version>1.0-SNAPSHOT</version>
10
	<name>gvsig-plugin-raster</name>
11
	<description>
12
		GvSIG plugin. This pom mades all the base plugin needed to run GvSIG
13
	</description>
14
	<inceptionYear>2007</inceptionYear>
15

  
16
	<developers>
17
		<developer>
18
			<name>nombre</name>
19
			<id>id</id>
20
			<email>mail@mail.com</email>
21
			<roles>
22
				<role>Developer</role>
23
			</roles>
24
			<organization>CIT</organization>
25
		</developer>
26
	</developers>
27

  
28
	<dependencies>
29
		<dependency>
30
			<groupId>junit</groupId>
31
			<artifactId>junit</artifactId>
32
			<version>3.8.1</version>
33
			<scope>test</scope>
34
		</dependency>
35

  
36
		<dependency>
37
			<groupId>log4j</groupId>
38
			<artifactId>log4j</artifactId>
39
			<version>1.2.13</version>
40
		</dependency>
41
	</dependencies>
42

  
43

  
44

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff