Skip to content

Commit

Permalink
[Cloud]Add cloud files
Browse files Browse the repository at this point in the history
  • Loading branch information
OFFTKP committed Dec 3, 2023
1 parent 583b3a7 commit e2103ef
Show file tree
Hide file tree
Showing 12 changed files with 25,484 additions and 29 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/deploy_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,10 @@ jobs:
uses: actions/[email protected]
- name: Configure & Build 🔧
run: |
mkdir build
cd build
cmake .. && cmake --build .
- name: Build DMG
run: |
cd build
brew install graphicsmagick imagemagick
pip install setuptools
npm install --global create-dmg
create-dmg --dmg-title=SkyEmu 'bin/SkyEmu.app' || true
ls
mv SkyEmu*.dmg "SkyEmu.dmg"
- name: GH Release 🚀
# You may pin to the exact commit or the version.
uses: actions/upload-artifact@v2
with:
name: MacOSRelease
path: build/SkyEmu.dmg
cp src/httplib.h test/
cd test
cmake -B build
cmake --build build --config Release
#uses: softprops/[email protected]
#with:
# # Note-worthy description of changes in release
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ endif()
if (PLATFORM_LINUX OR PLATFORM_FREEBSD)
find_package(X11 REQUIRED)
endif()

find_package(OpenSSL REQUIRED)
# TinyFileDialogs
if ((NOT IOS) AND (NOT EMSCRIPTEN) AND (NOT ANDROID) AND (NOT PLATFORM_LINUX) AND (NOT PLATFORM_FREEBSD))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_TINY_FILE_DIALOGS")
Expand Down Expand Up @@ -252,7 +254,7 @@ add_definitions(-DGIT_COMMIT_HASH=\"${GIT_COMMIT_HASH}\")
add_definitions(-DGIT_BRANCH=\"${GIT_BRANCH}\")
add_definitions(-DGIT_TAG=\"${GIT_TAG}\")

set(SKYEMU_SRC src/main.c src/stb.c src/miniz.c src/res.c src/localization.c)
set(SKYEMU_SRC src/main.c src/stb.c src/miniz.c src/res.c src/localization.c src/cloud.cpp)

if(ENABLE_HTTP_CONTROL_SERVER)
add_definitions(-DENABLE_HTTP_CONTROL_SERVER=1)
Expand Down Expand Up @@ -297,6 +299,7 @@ elseif(MACOS OR IOS)
set_property(TARGET ${PROJECT_NAME} PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/src/resources/ios-info.plist.in")
set_target_properties(${PROJECT_NAME} PROPERTIES XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2")
endif()
set(LINK_LIBS ${LINK_LIBS} "-framework Security")
elseif(ANDROID)
add_library(${PROJECT_NAME} SHARED ${SKYEMU_SRC})
else()
Expand All @@ -309,6 +312,7 @@ if (EMSCRIPTEN)
configure_file(src/sw.js.in ${CMAKE_CURRENT_BINARY_DIR}/bin/sw.js)
endif ()
set(LINK_LIBS ${LINK_LIBS} sokol ${ALSA_LIBRARIES})
# set(LINK_LIBS ${LINK_LIBS} ${OPENSSL_LIBRARIES})

set(CAPSTONE_BUILD_TESTS OFF CACHE BOOL "Build capstone tests" FORCE)
set(CAPSTONE_BUILD_CSTOOL OFF CACHE BOOL "Build capstone cstool" FORCE)
Expand Down
Loading

0 comments on commit e2103ef

Please sign in to comment.