Skip to content

android: update 'debug' information support - #14582

Merged
opencv-pushbot merged 1 commit into
opencv:masterfrom
alalek:android_update_debug
May 29, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:masterfrom
alalek:android_update_debug

Conversation

@alalek

@alalek alalek commented May 18, 2019 •

Copy link
Copy Markdown
Member

relates #14011
resolves #14010

Properly use BUILD_WITH_DEBUG_INFO in Android builds.

force_builders=Android pack

@alalek

alalek commented May 19, 2019

Copy link
Copy Markdown
Member Author

/cc @bommo1 @komakai

doNotStrip '*.so'
}
}
release {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exact working of packagingOptions and doNotStrip are somewhat of a mystery but I was never able to get them to work outside of the buildTypes block. If you want to specify doNotStrip for both debug and release I think the following would work:

    buildTypes {
        debug {
            packagingOptions {
                doNotStrip '**/*.so'
            }
        }
        release {
            packagingOptions {
                doNotStrip '**/*.so'
            }
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }

@alalek

alalek commented May 29, 2019

Copy link
Copy Markdown
Member Author

👍

@opencv-pushbot
opencv-pushbot merged commit 3c1267d into opencv:master May 29, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Debug flag to Android SDK build

3 participants