Add platform abstraction & cross-platform ports
Introduce a cross-platform platform layer and port scaffolding for macOS and Linux. CMakeLists.txt refactored to select platform sources, set executable type per OS, and use CEF helper macros for runtime deployment. Add platform/types.h, startup/paths/browser_host APIs and implementations for Windows, macOS, and Linux (many are stubs for mac/linux). Refactor app entry and lifetime to use nebula::platform::AppStartup (app/main, run.{h,cpp}), move window/browser host logic into platform/browser_host.*, and update NebulaController to use platform APIs (native handles, sizing, visibility, cache-busting token, etc.). Add README and detailed docs/cross-platform.md describing build layout and porting status.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#include "include/cef_app.h"
|
||||
#include "platform/types.h"
|
||||
|
||||
namespace nebula::platform {
|
||||
|
||||
void PrepareApp();
|
||||
bool TryAcquireSingleInstance();
|
||||
CefMainArgs MakeMainArgs(const AppStartup& startup);
|
||||
void InitCommandLine(CefRefPtr<CefCommandLine> command_line, const AppStartup& startup);
|
||||
void ConfigureCefSettings(CefSettings& settings);
|
||||
|
||||
} // namespace nebula::platform
|
||||
Reference in New Issue
Block a user