File tree 3 files changed +31
-3
lines changed
3 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,12 @@ set(NX_CPP -D_CRT_SECURE_NO_WARNINGS)
249
249
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${NX_CFLAGS} " )
250
250
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${NX_CFLAGS} " )
251
251
252
+ if (CMAKE_SIZEOF_VOID_P MATCHES "8" )
253
+ set (ARCH64 1)
254
+ else ()
255
+ set (ARCH64 0)
256
+ endif ()
257
+
252
258
# Recurse into the subdirectories.
253
259
add_subdirectory (src)
254
260
add_subdirectory (bindings)
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ NXMDisableErrorReporting
50
50
NXMEnableErrorReporting
51
51
NXMGetError
52
52
NXMSetError
53
+ NXMSetTError
53
54
createNXDataset
54
55
createTextNXDataset
55
56
dropNXDataset
@@ -65,6 +66,7 @@ nxiclose_
65
66
nxiclosedata_
66
67
nxiclosegroup_
67
68
nxicompmakedata_
69
+ nxicompmakedata64_
68
70
nxicompress_
69
71
nxifclose_
70
72
nxifcompmakedata_
@@ -82,20 +84,25 @@ nxigetdataid_
82
84
nxigetgroupid_
83
85
nxigetgroupinfo_
84
86
nxigetrawinfo_
87
+ nxigetrawinfo64_
85
88
nxigetinfo_
89
+ nxigetinfo64_
86
90
nxigetnextattr_
87
91
nxigetnextentry_
88
92
nxigetslab_
93
+ nxigetslab64_
89
94
nxiinitattrdir_
90
95
nxiinitgroupdir_
91
96
nxiinquirefile_
92
97
nxiisexternalgroup_
93
98
nxilinkexternal_
94
99
nximakedata_
100
+ nximakedata64_
95
101
nximakegroup_
96
102
nximakelink_
97
103
nximakenamedlink_
98
104
nximalloc_
105
+ nximalloc64_
99
106
nxiopen_
100
107
nxiopendata_
101
108
nxiopengroup_
@@ -105,9 +112,13 @@ nxiopensourcegroup_
105
112
nxiputattr_
106
113
nxiputdata_
107
114
nxiputslab_
115
+ nxiputslab64_
108
116
nxisameid_
109
117
nxisetcache_
110
118
nxisetnumberformat_
111
119
putNXDatasetValue
112
120
putNXDatasetValueAt
113
- nxigetpath_
121
+ nxigetpath_
122
+ nxilinkexternaldataset_
123
+ nxiisexternaldataset_
124
+ nxireopen_
Original file line number Diff line number Diff line change @@ -40,9 +40,14 @@ endif (HDF5_FOUND)
40
40
41
41
# need napi_exports2.c on win32 but not win64
42
42
if (WIN32 )
43
- set (NAPISRC ${NAPISRC} napi_exports.c napi_exports.h)
43
+ if (CMAKE_CL_64 )
44
+ set (NAPISRC ${NAPISRC} napi_exports2.c napi_exports.h)
45
+ else ()
46
+ set (NAPISRC ${NAPISRC} napi_exports.c napi_exports2.c napi_exports.h)
47
+ endif ()
44
48
endif (WIN32 )
45
49
50
+
46
51
set (NAPISRC ${NAPISRC} nxxml.c nxio.c nxio.h)
47
52
48
53
set_property (SOURCE ${NAPISRC} APPEND PROPERTY COMPILE_FLAGS ${NX_CFLAGS} )
@@ -81,11 +86,17 @@ add_library (NeXus_Shared_Library SHARED ${NAPISRC})
81
86
82
87
set_property (TARGET NeXus_Shared_Library APPEND PROPERTY COMPILE_DEFINITIONS _HDF5USEDLL_)
83
88
89
+ if (CMAKE_CL_64 )
90
+ set (DEF_FILE ${PROJECT_SOURCE_DIR} /Windows_extra/libNeXus-0-x64.def)
91
+ else ()
92
+ set (DEF_FILE ${PROJECT_SOURCE_DIR} /Windows_extra/libNeXus-0-Win32 .def)
93
+ endif ()
94
+
84
95
#Note - library version needs to be got from somewhere?
85
96
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
86
97
set_target_properties (NeXus_Shared_Library PROPERTIES OUTPUT_NAME libNeXus-0
87
98
VERSION 1.0 SOVERSION 4 )
88
- set_property (TARGET NeXus_Shared_Library APPEND PROPERTY LINK_FLAGS /def:${PROJECT_SOURCE_DIR} /Windows_extra/libNeXus-0-x64.def )
99
+ set_property (TARGET NeXus_Shared_Library APPEND PROPERTY LINK_FLAGS /def:${DEF_FILE} )
89
100
else (${CMAKE_SYSTEM_NAME} MATCHES "Windows" )
90
101
set_target_properties (NeXus_Shared_Library PROPERTIES OUTPUT_NAME NeXus
91
102
VERSION 1.0 SOVERSION 4)
You can’t perform that action at this time.
0 commit comments