Skip to content

Commit

Permalink
Revert "ios tweaks"
Browse files Browse the repository at this point in the history
This reverts commit 0cf2ae5.
  • Loading branch information
jmorton06 committed Jan 7, 2020
1 parent 0cf2ae5 commit c026651
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Lumos/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ project "Lumos"
"-Wno-attributes"
}

xcodebuildresources { 'res' }
xcodebuildresources { "res/**" }


filter "system:linux"
Expand Down
4 changes: 0 additions & 4 deletions Lumos/src/Platform/Vulkan/VKContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ namespace Lumos

void VKContext::CreateInstance()
{
#ifndef LUMOS_PLATFORM_IOS
if (volkInitialize() != VK_SUCCESS)
{
Debug::Log::Critical("volkInitialize failed");
Expand All @@ -242,7 +241,6 @@ namespace Lumos
{
Debug::Log::Critical("Could not find loader");
}
#endif

VkApplicationInfo appInfo = {};
appInfo.pApplicationName = "Sandbox";
Expand Down Expand Up @@ -285,9 +283,7 @@ namespace Lumos
Debug::Log::Critical("[VULKAN] Failed to create instance!");
}

#ifndef LUMOS_PLATFORM_IOS
volkLoadInstance(m_VkInstance);
#endif
}

void VKContext::SetupDebugCallback()
Expand Down
37 changes: 36 additions & 1 deletion Sandbox/premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,44 @@ project "Sandbox"
files
{
"../Lumos/src/Platform/iOS/Client/**",
"res/**"
}

xcodebuildresources { 'res' }
xcodebuildresources { "res/**" }

filter {"system:ios", "configurations:release"}

local source = "../Dependencies/vulkan/libs/ios/**"
local target = "../bin/release/"

buildmessage("copying "..source.." -> "..target)

postbuildcommands {
"{COPY} "..source.." "..target
}

filter {"system:ios", "configurations:dist"}

local source = "../Dependencies/vulkan/libs/ios/**"
local target = "../bin/dist/"

buildmessage("copying "..source.." -> "..target)

postbuildcommands {
"{COPY} "..source.." "..target
}

filter {"system:ios", "configurations:debug"}

local source = "../Dependencies/vulkan/libs/ios/**"
local target = "../bin/debug/"

buildmessage("copying "..source.." -> "..target)

postbuildcommands {
"{COPY} "..source.." "..target
}


filter "system:linux"
cppdialect "C++17"
Expand Down
1 change: 0 additions & 1 deletion Scripts/ios.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local action = premake.action

-- Add iOS to the allowed system values and `os` command line option
api.addAllowed("system", { "ios" })
api.addAllowed('language', 'ObjCpp' )
table.insert(premake.option.list["os"].allowed, { "ios", "Apple iOS" })

-- The `xcode4` action hardcodes OS to `macosx`. Unset that.
Expand Down
10 changes: 0 additions & 10 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
require 'Scripts/ios'
require 'Scripts/premakeDefines'

if( _TARGET_OS == 'macosx' ) then
newoption {
trigger = 'ios',
description = 'Target iOS'
}
if( _OPTIONS[ 'ios' ] ) then
_TARGET_OS = 'ios'
end
end

workspace "Lumos"
architecture "x64"

Expand Down

0 comments on commit c026651

Please sign in to comment.