Use dedicated PCH for sdklauncher

SDKLauncher now uses its own PCH.
This commit is contained in:
Kawe Mazidjatari 2023-05-14 01:23:31 +02:00
parent 0a0552d75c
commit 5577d4fe87
5 changed files with 28 additions and 7 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "exe" "sdklauncher" "vpc" ${FOLDER_CONTEXT} )
add_module( "exe" "sdklauncher" "" ${FOLDER_CONTEXT} )
start_sources()
@ -23,10 +23,16 @@ end_sources()
set_target_properties( ${PROJECT_NAME} PROPERTIES OUTPUT_NAME "launcher" )
target_compile_definitions( ${PROJECT_NAME} PRIVATE SDKLAUNCHER )
target_compile_definitions( ${PROJECT_NAME} PRIVATE
"SDKLAUNCHER"
)
target_precompile_headers( ${PROJECT_NAME} PRIVATE
"launcher_pch.h"
)
target_link_libraries( ${PROJECT_NAME} PRIVATE
"tier0"
"libdetours"
"libcppkore"
"libspdlog"
"Rpcrt4.lib"
)

View File

@ -3,9 +3,9 @@
// Purpose: Launcher user interface implementation.
//
//=============================================================================//
#include "core/stdafx.h"
#include "sdklauncher.h"
#include "launcher_pch.h"
#include "basepanel.h"
#include "sdklauncher.h"
#include "utility/vdf_parser.h"
//-----------------------------------------------------------------------------

View File

@ -0,0 +1,17 @@
#pragma once
#include "core/stdafx.h"
#include "thirdparty/cppnet/cppkore/Form.h"
#include "thirdparty/cppnet/cppkore/Kore.h"
#include "thirdparty/cppnet/cppkore/UIXTheme.h"
#include "thirdparty/cppnet/cppkore/UIXLabel.h"
#include "thirdparty/cppnet/cppkore/UIXListView.h"
#include "thirdparty/cppnet/cppkore/UIXCheckBox.h"
#include "thirdparty/cppnet/cppkore/UIXComboBox.h"
#include "thirdparty/cppnet/cppkore/UIXTextBox.h"
#include "thirdparty/cppnet/cppkore/UIXGroupBox.h"
#include "thirdparty/cppnet/cppkore/UIXButton.h"
#include "thirdparty/cppnet/cppkore/UIXRadioButton.h"
#include "thirdparty/cppnet/cppkore/KoreTheme.h"
#include "launcher/launcherdefs.h"

View File

@ -3,10 +3,9 @@
// Purpose: SDK launcher implementation.
//
//=============================================================================//
#include "core/stdafx.h"
#include "launcher_pch.h"
#include "tier0/binstream.h"
#include "basepanel.h"
#include "sdklauncher_const.h"
#include "sdklauncher.h"
///////////////////////////////////////////////////////////////////////////////

View File

@ -1,5 +1,4 @@
#pragma once
#include "basepanel.h"
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
class CLauncher