Skip to content

Commit

Permalink
Updates for R 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathon-love committed Aug 16, 2024
1 parent 294bef2 commit cbc1ff4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 5 additions & 3 deletions engine/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ endif

SRCDIR ?= $(dir $(firstword $(MAKEFILE_LIST)))
TARGET = jamovi-engine
CXXFLAGS += -std=c++11
CXXFLAGS += -std=c++17
INCLUDES += -I.

ifeq ($(os),OSX)
Expand Down Expand Up @@ -70,12 +70,14 @@ else
BASE_MODULE_PATH ?= $(SRCDIR)/../../modules/base/R
LDFLAGS += -L$(R_HOME)/bin/x64 \
-L$(BASE_MODULE_PATH)/RInside/lib/x64 \
-LC:/rtools43/x86_64-w64-mingw32.static.posix/lib \
-LC:/rtools44/x86_64-w64-mingw32.static.posix/lib \
-LC:/nanomsg/lib \
-lboost_filesystem-mt-x64 \
-lboost_system-mt-x64 \
-lboost_nowide-mt-x64 \
-lbcrypt
-lbcrypt \
-lprotobuf -labsl_log_internal_check_op -labsl_leak_check -labsl_die_if_null -labsl_log_internal_conditions -labsl_log_internal_message -labsl_examine_stack -labsl_log_internal_format -labsl_log_internal_proto -labsl_log_internal_nullguard -labsl_log_internal_log_sink_set -labsl_log_sink -labsl_log_entry -labsl_flags_internal -labsl_flags_marshalling -labsl_flags_reflection -labsl_flags_private_handle_accessor -labsl_flags_commandlineflag -labsl_flags_commandlineflag_internal -labsl_flags_config -labsl_flags_program_name -labsl_log_initialize -labsl_log_globals -labsl_vlog_config_internal -labsl_log_internal_fnmatch -labsl_log_internal_globals -labsl_raw_hash_set -labsl_hash -labsl_city -labsl_low_level_hash -labsl_hashtablez_sampler -labsl_statusor -labsl_status -labsl_cord -labsl_cordz_info -labsl_cord_internal -labsl_cordz_functions -labsl_exponential_biased -labsl_cordz_handle -labsl_crc_cord_state -labsl_crc32c -labsl_crc_internal -labsl_crc_cpu_detect -labsl_bad_optional_access -labsl_strerror -labsl_str_format_internal -labsl_synchronization -labsl_graphcycles_internal -labsl_kernel_timeout_internal -labsl_stacktrace -labsl_symbolize -ldbghelp -labsl_debugging_internal -labsl_demangle_internal -labsl_malloc_internal -labsl_time -labsl_civil_time -labsl_time_zone -labsl_bad_variant_access -lutf8_validity -lutf8_range -labsl_strings -labsl_strings_internal -labsl_string_view -labsl_base -ladvapi32 -labsl_spinlock_wait -labsl_int128 -labsl_throw_delegate -labsl_raw_logging_internal -labsl_log_severity


# _WIN32_WINNT is for SHGetKnownFolderPath

Expand Down
11 changes: 7 additions & 4 deletions server/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,26 @@
path.join(tld, 'include') ]

if os.name == 'nt': # windows
libraries = [ "libboost_filesystem-vc143-mt-x64-1_81", "libboost_system-vc143-mt-x64-1_81", "shell32" ]
library_dirs = [ 'C:/local/boost_1_81_0/lib64-msvc-14.3' ]
libraries = [ "libboost_filesystem-vc143-mt-x64-1_84", "libboost_system-vc143-mt-x64-1_84", "shell32" ]
library_dirs = [ 'C:/local/boost_1_84_0/lib64-msvc-14.3' ]
extra_compile_args = ["/D", "UNICODE"]
extra_link_args = [ ]
include_dirs += [ 'C:/local/boost_1_81_0' ]
include_dirs += [ 'C:/local/boost_1_84_0' ]
protoc_path = 'C:\\rtools44\\x86_64-w64-mingw32.static.posix\\bin\\protoc.exe'

elif os.uname()[0] == "Linux":
libraries = [ "boost_filesystem", "boost_system" ]
library_dirs = [ ]
extra_compile_args = [ ]
extra_link_args = [ "-Wl,-rpath,'$$ORIGIN/../lib'" ]
protoc_path = 'protoc'

elif os.uname()[0] == "Darwin":
libraries = [ "boost_filesystem", "boost_system" ]
library_dirs = [ tld + '/../Frameworks' ]
extra_compile_args = [ '-mmacosx-version-min=10.13' ]
extra_link_args = [ "-framework", "Foundation", '-mmacosx-version-min=10.13' ]
protoc_path = 'protoc'
else:
raise RuntimeError("Shouldn't get here!")

Expand Down Expand Up @@ -77,7 +80,7 @@
# build server/jamovi_pb.py

rc = subprocess.call([
'protoc',
protoc_path,
'--proto_path=' + path.join(here, 'jamovi/server'),
'--python_out=' + path.join(here, 'jamovi/server'),
path.join(here, 'jamovi/server/jamovi.proto')])
Expand Down

0 comments on commit cbc1ff4

Please sign in to comment.