Fix C-Make and Scons builds
This commit is contained in:
parent
9902a2a698
commit
8d8f9acc5e
5 changed files with 5 additions and 1 deletions
|
@ -615,6 +615,7 @@ for env in [test_env, client_env, env]:
|
|||
|
||||
if env["PLATFORM"] == 'darwin': # Mac OS X
|
||||
env.Append(FRAMEWORKS = "Cocoa") # Cocoa GUI
|
||||
env.Append(FRAMEWORKS = "IOKit") # IOKit
|
||||
|
||||
if not env['static_test']:
|
||||
test_env.Append(CPPDEFINES = "BOOST_TEST_DYN_LINK")
|
||||
|
|
|
@ -67,6 +67,7 @@ commandline_options.cpp
|
|||
config_cache.cpp
|
||||
controller_base.cpp
|
||||
countdown_clock.cpp
|
||||
desktop/battery_info.cpp
|
||||
desktop/notifications.cpp
|
||||
desktop/open.cpp
|
||||
desktop/paths.cpp
|
||||
|
|
|
@ -266,6 +266,7 @@ endif(WIN32)
|
|||
if(APPLE)
|
||||
set(libwesnoth-game_STAT_SRC
|
||||
${libwesnoth-game_STAT_SRC}
|
||||
desktop/apple_battery_info.mm
|
||||
desktop/apple_notification.mm
|
||||
desktop/apple_version.mm
|
||||
)
|
||||
|
|
|
@ -89,6 +89,7 @@ if env["PLATFORM"] == "win32":
|
|||
wesnoth_client_sources.append("desktop/windows_tray_notification.cpp")
|
||||
|
||||
if env["PLATFORM"] == 'darwin':
|
||||
wesnoth_client_sources.append("desktop/apple_battery_info.mm")
|
||||
wesnoth_client_sources.append("desktop/apple_notification.mm")
|
||||
wesnoth_client_sources.append("desktop/apple_version.mm")
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ inline NSDictionary* get_iops_battery_info() {
|
|||
CFRelease(list);
|
||||
CFRelease(info);
|
||||
|
||||
return (NSDictionary*) battery;
|
||||
return static_cast<NSDictionary*>(battery);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue