Skip to content

Commit

Permalink
revive the CMake build (brlcad.dll)
Browse files Browse the repository at this point in the history
svn:revision:32278
svn:branch:pre-7-12-6
svn:account:d_rossberg
  • Loading branch information
drossberg committed Aug 6, 2008
1 parent 0afa6a2 commit c67aacb
Show file tree
Hide file tree
Showing 11 changed files with 633 additions and 2 deletions.
27 changes: 27 additions & 0 deletions misc/win32-msvc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 2.6)

project(brlcad)

set(BUILD_SHARED_LIBS OFF)

add_definitions(-DOBJ_BREP)

add_subdirectory(../../src/other/libregex .)
add_subdirectory(../../src/other/libz .)
add_subdirectory(../../src/other/openNURBS .)
add_subdirectory(../../src/other/tcl .)

add_subdirectory(../../include/conf .)
add_subdirectory(../../src/libbn .)
add_subdirectory(../../src/libbu .)
add_subdirectory(../../src/librt .)
add_subdirectory(../../src/libged .)
add_subdirectory(../../src/libsysv .)
add_subdirectory(../../src/libwdb .)

# build DLL
add_subdirectory(Dll .)

# buld tools
add_subdirectory(../../src/conv .)
add_subdirectory(../../src/conv/3dm .)
196 changes: 196 additions & 0 deletions misc/win32-msvc/Dll/BrlcadCore.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
EXPORTS

bn_3pts_collinear
bn_3pts_distinct
bn_mat_angles
bn_mat_det3
bn_mat_determinant
bn_mat_identity
bn_mat_inv
bn_mat_mul2
bn_mat_print
bn_mk_plane_3pts
bn_mkpoint_3planes
bn_pt3_pt3_equal

create_vert_tree
Add_vert
clean_vert_tree

bu_avs_free
bu_avs_get
bu_badmagic
bu_bitv_clear
bu_bitv_free
bu_bitv_new
bu_bitv_shift
bu_bitv_to_hex
bu_bomb
bu_calloc
bu_debug
bu_exit
bu_fgets
bu_file_exists
bu_free_external
bu_free
bu_getopt
bu_glong
bu_hex_to_bitv
bu_jmpbuf
bu_log
bu_malloc
bu_mem_barriercheck
bu_optarg
bu_optind
bu_plong
bu_printb
bu_prmem
bu_ptbl_free
bu_ptbl_init
bu_ptbl_ins
bu_ptbl_reset
bu_ptbl
bu_ptbl_rm
bu_realloc
bu_strlcatm
bu_strlcpym
bu_struct_parse
bu_strdupm
bu_setjmp_valid
bu_units_conversion
bu_units_string
bu_vls_addr
bu_vls_free
bu_vls_init
bu_vls_printf
bu_vls_strcat
bu_vls_strcpy
bu_vls_strgrab
bu_vls_trunc

db5_get_attributes
db5_header_is_valid
db_ck_v4gift_tree
db_close
db_dirbuild
db_flatten_tree
db_free_external
db_free_tree
db_lookup
db_mkgift_tree
db_non_union_push
db_open
db_tree_nleaves
db_update_nref
db_walk_tree

mk_add_pipe_pt
mk_addmember
mk_arb8
mk_arbn
mk_ars
mk_bot
mk_bot_from_nmg
mk_brep
mk_cline
mk_comb
mk_conv2mm
mk_ehy
mk_ell
mk_epa
mk_eto
mk_extrusion
mk_freemembers
mk_grip
mk_half
mk_id
mk_id_editunits
mk_id_units
mk_nmg
mk_particle
mk_pipe_init
mk_pipe_free
mk_pipe
mk_rcc
mk_region1
mk_rhc
mk_rpc
mk_rpp
mk_sketch
mk_sph
mk_tgc
mk_tor
mk_trc_h
mk_trc_top
mk_write_color_table

nmg_booltree_leaf_tess
nmg_break_edges
nmg_close_shell
nmg_cmface
nmg_dup_shell
nmg_find_model
nmg_fix_normals
nmg_fu_planeeqn
nmg_gluefaces
nmg_in_vert
nmg_jf
nmg_km
nmg_ks
nmg_make_faces_within_tol
nmg_mirror_model
nmg_mm
nmg_model_vertex_fuse
nmg_mrsv
nmg_open_shells_connect
nmg_pr_fu_briefly
nmg_propagate_normals
nmg_region_a
nmg_reverse_face
nmg_reverse_face_and_radials
nmg_shell_a
nmg_shell_coplanar_face_merge
nmg_simplify_loop
nmg_simplify_shell
nmg_triangulate_model
nmg_vertex_gv
nmg_vertex_tabulate
nmg_vmodel

pdv_3cont
pdv_3move

regexec
regcomp

rt_bot_condense
rt_bot_face_fuse
rt_bot_smooth
rt_bot_vertex_fuse
rt_clean
rt_color_addrec
rt_comb_ifree
rt_db_free_internal
rt_db_get_internal
rt_db_put_internal
rt_dirbuild
rt_dsp_ifree
rt_ebm_ifree
rt_free_rti
rt_functab
rt_gettree
rt_g
rt_init_resource
rt_initial_tree_state
rt_pg_to_bot
rt_prep
rt_shootray
rt_uniresource
rt_vol_ifree

wdb_close
wdb_create_cmd
wdb_export
wdb_fopen
wdb_init_obj
wdb_put_internal
65 changes: 65 additions & 0 deletions misc/win32-msvc/Dll/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# write brlcadrc_defines.h
file(READ ../../../include/conf/MAJOR majorVersionNumber)
file(READ ../../../include/conf/MINOR minorVersionNumber)
file(READ ../../../include/conf/PATCH patchVersionNumber)

file(WRITE brlcadrc_defines.h
"#define BRLCAD_DLL_RC_MAJOR ${majorVersionNumber}"
"#define BRLCAD_DLL_RC_MINOR ${minorVersionNumber}"
"#define BRLCAD_DLL_RC_PATCH ${patchVersionNumber}"
)


# for all targets
include_directories(
../../../include
../../../src/other/tcl/generic
)


# build the brlcad.dll
set(BRLCAD_SOURCES
TclDummies.c
brlcad.def
brlcad.rc
)

add_library(brlcad SHARED ${BRLCAD_SOURCES})

target_link_libraries(brlcad
libbn
libbu
libged
libregex
librt
libsysv
libwdb
libz
openNURBS
)

set_property(TARGET brlcad PROPERTY LINK_INTERFACE_LIBRARIES "")


# build the BrlcadCore.dll
set(BRLCADCORE_SOURCES
BrlcadCore.def
BrlcadCore.rc
)

add_library(BrlcadCore SHARED ${BRLCADCORE_SOURCES})

target_link_libraries(BrlcadCore
libbn
libbu
libged
libregex
librt
libsysv
libwdb
libz
openNURBS
tcl85
)

set_property(TARGET BrlcadCore PROPERTY LINK_INTERFACE_LIBRARIES "")
2 changes: 0 additions & 2 deletions src/librt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ set(LIBRT_SOURCES
bool.c
bundle.c
cmd.c
constraint.c
cut.c
db5_alloc.c
db5_bin.c
Expand Down Expand Up @@ -110,7 +109,6 @@ set(LIBRT_SOURCES
primitives/pipe/pipe.c
primitives/poly/poly.c
primitives/rec/rec.c
primitives/revolve/revolve.c
primitives/rhc/rhc.c
primitives/rpc/rpc.c
primitives/sketch/sketch.c
Expand Down
38 changes: 38 additions & 0 deletions src/libwdb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
set(LIBWDB_SOURCES
brep.cpp
arbn.c
ars.c
bot.c
cline.c
dsp.c
dynamic_geometry.c
ebm.c
export.c
extr.c
id.c
mater.c
nmg.c
nurb.c
pipe.c
reg.c
skt.c
submodel.c
units.c
vol.c
wdb.c
)

include_directories(
../../include
../other/libz
../other/openNURBS
../other/tcl/generic
)

add_definitions(
-DHAVE_CONFIG_H
-DBRLCADBUILD
-DON_DLL_IMPORTS
)

add_library(libwdb ${LIBWDB_SOURCES})
12 changes: 12 additions & 0 deletions src/other/libregex/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set(LIBREGEX_SOURCES
regcomp.c
regerror.c
regexec.c
regfree.c
)

include_directories(
../../../include
)

add_library(libregex ${LIBREGEX_SOURCES})
16 changes: 16 additions & 0 deletions src/other/libz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set(LIBZ_SOURCES
adler32.c
compress.c
crc32.c
deflate.c
gzio.c
infback.c
inffast.c
inflate.c
inftrees.c
trees.c
uncompr.c
zutil.c
)

add_library(libz ${LIBZ_SOURCES})
Loading

0 comments on commit c67aacb

Please sign in to comment.