Skip to content

Commit 3b11009

Browse files
authored
Update deps (#185)
* Update jGL/jLog
1 parent 8f52ef0 commit 3b11009

File tree

9 files changed

+24
-32
lines changed

9 files changed

+24
-32
lines changed

.github/workflows/release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ jobs:
169169
path: demos.zip
170170

171171
macosNative:
172-
runs-on: macos-11
172+
runs-on: macos-12
173173

174174
steps:
175175
- uses: actions/checkout@v4
@@ -284,10 +284,11 @@ jobs:
284284
mkdir cmdline-tools
285285
mv latest cmdline-tools
286286
yes | ./cmdline-tools/latest/bin/sdkmanager --licenses
287-
./cmdline-tools/latest/bin/sdkmanager --install "system-images;android-33;google_apis;x86_64"
288-
./cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-33"
289-
echo no | ./cmdline-tools/latest/bin/avdmanager create avd --name android33 --package "system-images;android-33;google_apis;x86_64"
290-
287+
./cmdline-tools/latest/bin/sdkmanager --channel=3 emulator
288+
./cmdline-tools/latest/bin/sdkmanager --install "system-images;android-34;google_apis;x86_64"
289+
./cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms;android-34"
290+
echo no | ./cmdline-tools/latest/bin/avdmanager create avd --name android34 --package "system-images;android-34;google_apis;x86_64"
291+
291292
- name: build hop
292293
run: |
293294
git submodule update --recursive
@@ -418,7 +419,7 @@ jobs:
418419
419420
test-release-macos:
420421
needs: [macosNative, headers]
421-
runs-on: macos-11
422+
runs-on: macos-12
422423

423424
steps:
424425

CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ if(BENCHMARK)
146146
target_compile_definitions(Hop PUBLIC BENCHMARK)
147147
endif()
148148

149-
target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio)
149+
if (WINDOWS)
150+
target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio "winmm")
151+
else()
152+
target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio)
153+
endif()
150154

151155
if (NOT ANDROID)
152156
add_subdirectory(tools/)

include/Component/cTransform.h

+3-14
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,11 @@
11
#ifndef CTRANSFORM_H
22
#define CTRANSFORM_H
33

4+
#include <jGL/primitive.h>
5+
46
namespace Hop::Object::Component
57
{
6-
struct cTransform {
7-
double x, y, scale, theta;
8-
9-
cTransform() = default;
10-
11-
cTransform(
12-
double x,
13-
double y,
14-
double t,
15-
double s
16-
)
17-
: x(x), y(y), scale(s), theta(t)
18-
{}
19-
};
8+
using cTransform = jGL::Transform;
209
}
2110

2211
#endif /* CTRANSFORM_H */

include/Console/console.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Hop
2929

3030
using jLog::INFO;
3131
using jLog::WARN;
32-
using jLog::ERROR;
32+
using jLog::ERR;
3333
using jLog::Log;
3434
using jLog::ERRORCODE;
3535

@@ -192,7 +192,7 @@ namespace Hop
192192
{
193193
std::string msg = "Exited with error running "+lastCommandOrProgram+"\n";
194194
msg += stackTrace;
195-
ERROR(ERRORCODE::LUA_ERROR, msg) >> log;
195+
ERR(ERRORCODE::LUA_ERROR, msg) >> log;
196196
return true;
197197
}
198198
else

include/System/Sound/sSound.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace Hop::System::Sound
8686
jLog::Log log;
8787
std::stringstream ss;
8888
ss << "Could not decode audio file: " << filename << ", got error: " << to_string(result);
89-
jLog::ERROR(ss.str()) >> log;
89+
jLog::ERR(ss.str()) >> log;
9090
}
9191

9292
if (decoderInUse == DECODER::MA)

include/jLog

Submodule jLog updated 1 file

src/Debug/collisionMeshDebug.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,8 @@ namespace Hop::Debugging
9595
// }
9696

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

104101
}
105102

tests/regression/user-mingw/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ target_link_libraries(
2929
${X11_LIBRARIES}
3030
${OPENGL_LIBRARIES}
3131
${Vulkan_LIBRARIES}
32-
${ZLIB_LIBRARIES}
32+
${ZLIB_LIBRARIES}
3333
${CMAKE_SOURCE_DIR}/libHop.a
34+
"winmm"
3435
)
3536

3637
target_include_directories(

0 commit comments

Comments
 (0)