Skip to content

Commit

Permalink
project: back out from AVX requirement to SSE3
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Aug 17, 2019
1 parent 249e996 commit 55fc86d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Currently audio is hard synced to NTSC (60Hz) (**running PAL games will make aud
## Requirements
- OS: Windows 7 or later, macOS 10.13 or later, Linux
- GPU: Graphics card supporting **OpenGL 3.2**
- CPU: [AVX compatible x64 processor](https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#CPUs_with_AVX) or any x86 processor
- CPU: [SSE3 compatible (CPUs after 2004)](https://en.wikipedia.org/wiki/SSE3#CPUs_with_SSE3) x64 or x86 processor

### Notes
Avocado focuses on supporting relatively modern hardware (2010 and forwards) and non-legacy OSes.
Expand Down
35 changes: 27 additions & 8 deletions premake5.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
include "premake/tools.lua"
require "./premake/androidmk"

-- Windows support 32bit and 64bit versions
-- Linux - as well
-- MacOS is 64bit only
-- Android has ARM architecture - Android studio decides on ABI
-- Web - single architecture

workspace "Avocado"
configurations { "debug", "release" }
platforms {"x86", "x64"}
startproject "avocado"
defaultplatform "x86"

ndkabi "arm64-v8a armeabi-v7a"
ndkstl "c++_static"
ndkplatform "android-24"

Expand Down Expand Up @@ -59,20 +62,36 @@ filter {}
exceptionhandling "On"
rtti "On"

filter "platforms:x86"
architecture "x32"
filter "system:windows"
platforms {"x86", "x64"}
defaultplatform "x64"

filter "platforms:x64"
architecture "x64"
vectorextensions "AVX"
filter "system:linux"
platforms {"x86", "x64"}
defaultplatform "x64"

filter "system:macosx"
platforms {"x64"}
defaultplatform "x64"
xcodebuildsettings {
['ALWAYS_SEARCH_USER_PATHS'] = {'YES'}
}

filter "system:android"
platforms {"arm"}
defines { "USE_OPENGLES"}

filter "platforms:x86"
architecture "x32"
vectorextensions "SSE3"

filter "platforms:x64"
architecture "x64"
vectorextensions "SSE3"

filter "platforms:arm"
architecture "arm"
vectorextensions "NEON"

filter "kind:*App"
targetdir "build/%{cfg.buildcfg}_%{cfg.platform}"
Expand Down

0 comments on commit 55fc86d

Please sign in to comment.