Skip to content

Commit

Permalink
Fix issues with adpf
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuguohua committed Dec 17, 2024
1 parent 405fca8 commit 1fc5790
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3173,7 +3173,7 @@ function(cc_apply_definations target)
$<$<BOOL:${USE_SE_NAPI}>:SCRIPT_ENGINE_TYPE=5>
$<$<BOOL:${USE_SE_JSVM}>:SCRIPT_ENGINE_TYPE=6>
$<$<OR:$<CONFIG:Debug>,$<BOOL:${CC_DEBUG_FORCE}>>:CC_DEBUG=1>
$<IF:$<BOOL:${USE_APDF}>,CC_USE_APDF=1,CC_USE_APDF=0>
$<IF:$<BOOL:${USE_ADPF}>,CC_USE_ADPF=1,CC_USE_ADPF=0>
$<IF:$<BOOL:${USE_GOOGLE_BILLING}>,CC_USE_GOOGLE_BILLING=1,CC_USE_GOOGLE_BILLING=0>
)
endfunction()
Expand Down
2 changes: 1 addition & 1 deletion native/cocos/platform/android/adpf_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#if CC_PLATFORM == CC_PLATFORM_ANDROID && __ANDROID_API__ >= 30
#if CC_PLATFORM == CC_PLATFORM_ANDROID && __ANDROID_API__ >= 30 && CC_USE_ADPF
#include <android/api-level.h>
#include <android/log.h>
#include <android/thermal.h>
Expand Down

0 comments on commit 1fc5790

Please sign in to comment.