@swisseph/node 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +10 -10
- package/libswe/CMakeLists.txt +63 -0
- package/libswe/sefstars.txt +1590 -0
- package/libswe/seleapsec.txt +6 -0
- package/libswe/seorbel.txt +95 -0
- package/libswe/sweasp.c +1881 -0
- package/libswe/swecl.c +6430 -0
- package/libswe/sweclips.c +905 -0
- package/libswe/swedate.c +588 -0
- package/libswe/swedate.h +81 -0
- package/libswe/swedll.h +403 -0
- package/libswe/swedllst.c +690 -0
- package/libswe/sweephe4.c +694 -0
- package/libswe/sweephe4.h +239 -0
- package/libswe/swehel.c +3522 -0
- package/libswe/swehouse.c +3140 -0
- package/libswe/swehouse.h +98 -0
- package/libswe/swejpl.c +952 -0
- package/libswe/swejpl.h +103 -0
- package/libswe/swemini.c +73 -0
- package/libswe/swemmoon.c +1930 -0
- package/libswe/swemplan.c +967 -0
- package/libswe/swemptab.h +10640 -0
- package/libswe/swenut2000a.h +2819 -0
- package/libswe/sweodef.h +345 -0
- package/libswe/sweph.c +8615 -0
- package/libswe/sweph.h +849 -0
- package/libswe/swephexp.h +1025 -0
- package/libswe/swephgen4.c +309 -0
- package/libswe/swephlib.c +4634 -0
- package/libswe/swephlib.h +189 -0
- package/libswe/swetest.c +4079 -0
- package/libswe/swevents.c +2936 -0
- package/libswe/swevents.h +118 -0
- package/package.json +10 -7
package/binding.gyp
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"target_name": "swisseph",
|
|
5
5
|
"sources": [
|
|
6
6
|
"binding/swisseph_binding.cc",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
7
|
+
"libswe/sweph.c",
|
|
8
|
+
"libswe/swephlib.c",
|
|
9
|
+
"libswe/swedate.c",
|
|
10
|
+
"libswe/swejpl.c",
|
|
11
|
+
"libswe/swemmoon.c",
|
|
12
|
+
"libswe/swemplan.c",
|
|
13
|
+
"libswe/swehouse.c",
|
|
14
|
+
"libswe/swecl.c",
|
|
15
|
+
"libswe/swehel.c"
|
|
16
16
|
],
|
|
17
17
|
"include_dirs": [
|
|
18
18
|
"<!@(node -p \"require('node-addon-api').include\")",
|
|
19
|
-
"
|
|
19
|
+
"libswe",
|
|
20
20
|
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": [
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# swisseph CMakeLists.txt
|
|
2
|
+
|
|
3
|
+
cmake_minimum_required( VERSION 3.10 )
|
|
4
|
+
project( cswisseph )
|
|
5
|
+
|
|
6
|
+
message( STATUS "-- Configuring cswisseph..." )
|
|
7
|
+
|
|
8
|
+
set( SOURCES
|
|
9
|
+
swecl.c
|
|
10
|
+
swedate.c
|
|
11
|
+
swehel.c
|
|
12
|
+
swehouse.c
|
|
13
|
+
swejpl.c
|
|
14
|
+
swemmoon.c
|
|
15
|
+
swemplan.c
|
|
16
|
+
#swemptab.c
|
|
17
|
+
sweph.c
|
|
18
|
+
swephlib.c
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
set( HEADERS
|
|
22
|
+
swedate.h
|
|
23
|
+
swedll.h
|
|
24
|
+
swehouse.h
|
|
25
|
+
swejpl.h
|
|
26
|
+
swemptab.h
|
|
27
|
+
swenut2000a.h
|
|
28
|
+
sweodef.h
|
|
29
|
+
sweph.h
|
|
30
|
+
swephexp.h
|
|
31
|
+
swephlib.h
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
include_directories( BEFORE . )
|
|
35
|
+
|
|
36
|
+
if ( MSVC )
|
|
37
|
+
add_definitions( -D_CRT_SECURE_NO_WARNINGS )
|
|
38
|
+
else()
|
|
39
|
+
add_definitions( -g -O9 -Wall )
|
|
40
|
+
if ( NOT MINGW )
|
|
41
|
+
add_definitions( -fPIC )
|
|
42
|
+
endif()
|
|
43
|
+
endif()
|
|
44
|
+
|
|
45
|
+
add_library( swe STATIC ${SOURCES} )
|
|
46
|
+
|
|
47
|
+
install( TARGETS swe ARCHIVE DESTINATION lib )
|
|
48
|
+
install( FILES ${HEADERS} DESTINATION include/swisseph )
|
|
49
|
+
|
|
50
|
+
# export some variables
|
|
51
|
+
set( LIBSWE_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}
|
|
52
|
+
CACHE STRING "Path to swisseph header files" )
|
|
53
|
+
|
|
54
|
+
# build some executable
|
|
55
|
+
if ( EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/mytest.c" )
|
|
56
|
+
add_executable( mytest mytest.c )
|
|
57
|
+
target_link_libraries( mytest swe )
|
|
58
|
+
if ( NOT MSVC )
|
|
59
|
+
target_link_libraries( mytest m dl )
|
|
60
|
+
endif()
|
|
61
|
+
endif()
|
|
62
|
+
|
|
63
|
+
# vi: ai et sw=4 ts=4 sts=4
|