Skip to content

Commit

Permalink
feature: fixing macos arch
Browse files Browse the repository at this point in the history
  • Loading branch information
efraespada committed Nov 1, 2024
1 parent 8628dfc commit d95bd37
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
33 changes: 33 additions & 0 deletions zstandard_cli/zstd/builders/macos/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# The Flutter tooling requires that developers have CMake 3.10 or later
# installed. You should not increase this version, as doing so will cause
# the plugin to fail to compile for some customers of the plugin.
cmake_minimum_required(VERSION 3.10)

project(zstandard_macos_library VERSION 0.0.1 LANGUAGES C)

# Encuentra los archivos C de Zstd
file(GLOB ZSTD_SRC
"../../common/*.c"
"../../compress/*.c"
"../../decompress/*.c"
)

# Agrega el ejecutable para el plugin
add_library(zstandard_macos SHARED
# "Classes/plugin_code.cpp"
${ZSTD_SRC}
)

target_include_directories(zstandard_macos PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/common"
"${CMAKE_CURRENT_SOURCE_DIR}/compress"
"${CMAKE_CURRENT_SOURCE_DIR}/decompress"
)

set_target_properties(zstandard_macos PROPERTIES
PUBLIC_HEADER zstandard_macos.h
OUTPUT_NAME "zstandard_macos"
)

target_compile_definitions(zstandard_macos PUBLIC DART_SHARED_LIB)
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ project(zstandard_windows_library VERSION 0.0.1 LANGUAGES C)

# Encuentra los archivos C de Zstd
file(GLOB ZSTD_SRC
"*.c"
"common/*.c"
"compress/*.c"
"decompress/*.c"
"../../*.c"
"../../common/*.c"
"../../compress/*.c"
"../../decompress/*.c"
)

# Agrega el ejecutable para el plugin
Expand Down
File renamed without changes.

0 comments on commit d95bd37

Please sign in to comment.