Skip to content

Commit

Permalink
Update deps (#185)
Browse files Browse the repository at this point in the history
* Update jGL/jLog
  • Loading branch information
Jerboa-app authored Jul 28, 2024
1 parent 8f52ef0 commit 3b11009
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 32 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
path: demos.zip

macosNative:
runs-on: macos-11
runs-on: macos-12

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -284,10 +284,11 @@ jobs:
mkdir cmdline-tools
mv latest cmdline-tools
yes | ./cmdline-tools/latest/bin/sdkmanager --licenses
./cmdline-tools/latest/bin/sdkmanager --install "system-images;android-33;google_apis;x86_64"
./cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-33"
echo no | ./cmdline-tools/latest/bin/avdmanager create avd --name android33 --package "system-images;android-33;google_apis;x86_64"
./cmdline-tools/latest/bin/sdkmanager --channel=3 emulator
./cmdline-tools/latest/bin/sdkmanager --install "system-images;android-34;google_apis;x86_64"
./cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-34"
echo no | ./cmdline-tools/latest/bin/avdmanager create avd --name android34 --package "system-images;android-34;google_apis;x86_64"
- name: build hop
run: |
git submodule update --recursive
Expand Down Expand Up @@ -418,7 +419,7 @@ jobs:
test-release-macos:
needs: [macosNative, headers]
runs-on: macos-11
runs-on: macos-12

steps:

Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ if(BENCHMARK)
target_compile_definitions(Hop PUBLIC BENCHMARK)
endif()

target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio)
if (WINDOWS)
target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio "winmm")
else()
target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio)
endif()

if (NOT ANDROID)
add_subdirectory(tools/)
Expand Down
17 changes: 3 additions & 14 deletions include/Component/cTransform.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
#ifndef CTRANSFORM_H
#define CTRANSFORM_H

#include <jGL/primitive.h>

namespace Hop::Object::Component
{
struct cTransform {
double x, y, scale, theta;

cTransform() = default;

cTransform(
double x,
double y,
double t,
double s
)
: x(x), y(y), scale(s), theta(t)
{}
};
using cTransform = jGL::Transform;
}

#endif /* CTRANSFORM_H */
4 changes: 2 additions & 2 deletions include/Console/console.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Hop

using jLog::INFO;
using jLog::WARN;
using jLog::ERROR;
using jLog::ERR;
using jLog::Log;
using jLog::ERRORCODE;

Expand Down Expand Up @@ -192,7 +192,7 @@ namespace Hop
{
std::string msg = "Exited with error running "+lastCommandOrProgram+"\n";
msg += stackTrace;
ERROR(ERRORCODE::LUA_ERROR, msg) >> log;
ERR(ERRORCODE::LUA_ERROR, msg) >> log;
return true;
}
else
Expand Down
2 changes: 1 addition & 1 deletion include/System/Sound/sSound.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ namespace Hop::System::Sound
jLog::Log log;
std::stringstream ss;
ss << "Could not decode audio file: " << filename << ", got error: " << to_string(result);
jLog::ERROR(ss.str()) >> log;
jLog::ERR(ss.str()) >> log;
}

if (decoderInUse == DECODER::MA)
Expand Down
2 changes: 1 addition & 1 deletion include/jLog
Submodule jLog updated 1 files
+7 −7 jLog.h
7 changes: 2 additions & 5 deletions src/Debug/collisionMeshDebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,8 @@ namespace Hop::Debugging
// }

std::string sid = to_string(citer->first)+"-"+std::to_string(i);
shapes->getShape(sid)->update
(
jGL::Transform(cp->x, cp->y, theta, scale*2.0*cpmodel->r),
glm::vec4(ren.r, ren.g, ren.b, ren.a)
);
shapes->getShape(sid)->transform = jGL::Transform(cp->x, cp->y, theta, scale*2.0*cpmodel->r);
shapes->getShape(sid)->colour = glm::vec4(ren.r, ren.g, ren.b, ren.a);

}

Expand Down
3 changes: 2 additions & 1 deletion tests/regression/user-mingw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ target_link_libraries(
${X11_LIBRARIES}
${OPENGL_LIBRARIES}
${Vulkan_LIBRARIES}
${ZLIB_LIBRARIES}
${ZLIB_LIBRARIES}
${CMAKE_SOURCE_DIR}/libHop.a
"winmm"
)

target_include_directories(
Expand Down

0 comments on commit 3b11009

Please sign in to comment.