Changeset 24611


Ignore:
Timestamp:
02/27/20 16:19:24 (5 years ago)
Author:
jdquinn
Message:

CHG: Updated config for Triangle for Windows build

Location:
issm/trunk-jpl
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r24466 r24611  
    446446
    447447TRIANGLE_DIR="${ISSM_DIR}/externalpackages/triangle/install"
    448 ld_library_path_append "${TRIANGLE_DIR}/lib"
     448if [ -d "${TRIANGLE_DIR}" ]; then
     449        ld_library_path_append "${TRIANGLE_DIR}/lib"
     450        dyld_library_path_append "${TRIANGLE_DIR}/lib"
     451fi
  • issm/trunk-jpl/externalpackages/triangle/install-windows-static.sh

    r24605 r24611  
    2424# Compile
    2525cd src
    26 make shared
     26make static
    2727
    2828# Install
  • issm/trunk-jpl/externalpackages/triangle/makefile

    r11989 r24611  
    1 #Adaptation of Triangle makefile to compile only the triangle.c file,
    2 #into a standalone library that can then be used to compile mex modules
    3 
    41include ./configure.make
    52
     
    1613endif
    1714
    18 TRILIBDEFS = -DTRILIBRARY
    19 
    20 all: triangle.$(LIB_EXT)
    21 
     15SOURCES=triangle.c triangle.h
    2216OBJECTS=triangle.$(OBJ_EXT)
    2317
    24 triangle.$(LIB_EXT): $(OBJECTS)
    25         $(AR) cr  triangle.$(LIB_EXT) $(OBJECTS)
    26         $(RANLIB) triangle.$(LIB_EXT)
     18all: libtriangle.$(STATIC_LIB_EXT) libtriangle.$(SHARED_LIB_EXT)
    2719
    28 triangle.$(OBJ_EXT): triangle.c triangle.h
     20objects: $(OBJECTS)
     21
     22shared: libtriangle.$(SHARED_LIB_EXT)
     23
     24static: libtriangle.$(STATIC_LIB_EXT)
     25
     26triangle.$(OBJ_EXT): $(SOURCES)
    2927        $(CC) $(CSWITCHES) $(TRILIBDEFS) -c triangle.c
    3028
    31 clean:
     29libtriangle.$(STATIC_LIB_EXT): $(OBJECTS)
     30        $(AR) cr $@ $(OBJECTS)
     31        $(RANLIB) $@
     32
     33libtriangle.dll: $(SOURCES)
     34        $(CC) $(CSWITCHES) $(TRILIBDEFS) -shared -o $@ triangle.c
     35
     36libtriangle.dylib: $(OBJECTS)
     37        $(CC) $(CSWITCHES) $(TRILIBDEFS) -dynamiclib -install_name $(PREFIX)/$@ -o $@ triangle.c
     38
     39libtriangle.lib: $(OBJECTS)
     40        lib -out:triangle.$(STATIC_LIB_EXT) $(OBJECTS)
     41
     42libtriangle.so: $(SOURCES)
     43        $(CC) $(CSWITCHES) $(TRILIBDEFS) -shared -o $@ triangle.c
     44
     45clean:
    3246        rm -rf *.$(LIB_EXT) *.$(OBJ_EXT) *.LIB *.LST *.$(OBJ_EXT)bj *.BAK
  • issm/trunk-jpl/jenkins/windows

    r24605 r24611  
    4141                                                petsc       install-3.6-win10.sh
    4242                                                metis       install-4.0-win10.sh
    43                                                 triangle    install-windows.sh
     43                                                triangle    install-windows-static.sh
    4444                                                shell2junit install.sh"
    4545
Note: See TracChangeset for help on using the changeset viewer.