Skip to content
Permalink
Browse files

project: back out from AVX requirement to SSE3

  • Loading branch information
JaCzekanski committed Aug 17, 2019
1 parent 249e996 commit 55fc86d15cc806bfdc0ec289c0b6761e79396305
Showing with 28 additions and 9 deletions.
  1. +1 −1 README.md
  2. +27 −8 premake5.lua
@@ -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.
@@ -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"

@@ -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}"

0 comments on commit 55fc86d

Please sign in to comment.
You can’t perform that action at this time.