x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Get android cpu architecture in build.cs ?

There any way to get android cpu architecture in build.cs file? I has a problem with third party lib, that have different build libraries for different cpu architecture. I want to get specific libs for specific architecture in my build.cs file.

Product Version: UE 4.21
Tags:
more ▼

asked Apr 07 '19 at 11:51 AM in C++ Programming

avatar image

GloryOfNight
66 3 5 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Target.Architecture contains target CPU architecture

Looking osme examples from other build.cs files in engine source code, you need to do Target.Architecture.StartsWith("x86_64") to check if runs on x86 64bit with 32 it will be just x86

here other hints of what that varbale may contain armeabi-armv7a, arm64-v8a, x86, x86_64

You can also use Contains function

more ▼

answered Apr 07 '19 at 08:38 PM

avatar image

Shadowriver
37.2k 936 172 1116

avatar image Maksym Nosatov Apr 07 '19 at 09:18 PM

As in post above,you can setup by yourself which architecture libs you have and you want to support.UE4 gives only the ability to setup,but doesnt have any enums for this,you should do it by yourself.You can take a look at any plugin that is under Runtime/Online in UE4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I tried to use Target.Architecture and its returns empty string for me. Also tried use it with StartsWith(), but give no result too.

Here a .build.cs file that I trying to do lib choose by it arch type, without comment&uncomment stuff.
https://github.com/GloryOfNight/UE4FirebaseAnalytics/blob/master/Source/FirebaseAnalytics/FirebaseAnalytics.Build.cs

Also, if you know how to do that you can do PR into this rep.

PS: Sorry for not direct comment to answer, for some reason I cannot anymore choose answers and leave comments under them.

more ▼

answered Apr 08 '19 at 07:51 AM

avatar image

GloryOfNight
66 3 5 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question